mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
Do not create empty permissions
This commit is contained in:
@@ -206,7 +206,7 @@ public class DefaultAuthorizationCollector implements AuthorizationCollector
|
|||||||
for (RepositoryPermission permission : repositoryPermissions)
|
for (RepositoryPermission permission : repositoryPermissions)
|
||||||
{
|
{
|
||||||
hasPermission = isUserPermitted(user, groups, permission);
|
hasPermission = isUserPermitted(user, groups, permission);
|
||||||
if (hasPermission)
|
if (hasPermission && !permission.getVerbs().isEmpty())
|
||||||
{
|
{
|
||||||
String perm = "repository:" + String.join(",", permission.getVerbs()) + ":" + repository.getId();
|
String perm = "repository:" + String.join(",", permission.getVerbs()) + ":" + repository.getId();
|
||||||
if (logger.isTraceEnabled())
|
if (logger.isTraceEnabled())
|
||||||
|
|||||||
Reference in New Issue
Block a user