mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fix debug service hook for non admin users
This commit is contained in:
@@ -50,13 +50,13 @@ public final class DebugService
|
||||
private final Multimap<String,DebugHookData> receivedHooks = LinkedListMultimap.create();
|
||||
|
||||
/**
|
||||
* Stores {@link DebugHookData} for the given repository.
|
||||
*
|
||||
* @param repository repository id
|
||||
* @param hookData received hook data
|
||||
*/
|
||||
public void put(String repository, DebugHookData hookData)
|
||||
void put(String repository, DebugHookData hookData)
|
||||
{
|
||||
SecurityUtils.getSubject().checkRole(Role.ADMIN);
|
||||
receivedHooks.put(repository, hookData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user