mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
added name of the repository to access denied exceptions
This commit is contained in:
@@ -918,7 +918,8 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager
|
|||||||
if (!isPermitted(repository, PermissionType.OWNER))
|
if (!isPermitted(repository, PermissionType.OWNER))
|
||||||
{
|
{
|
||||||
throw new ScmSecurityException(
|
throw new ScmSecurityException(
|
||||||
"owner permission is required, access denied");
|
"owner permission is required, owner access to repository " + repository.getName() + " denied"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -933,7 +934,8 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager
|
|||||||
if (!isReader(repository))
|
if (!isReader(repository))
|
||||||
{
|
{
|
||||||
throw new ScmSecurityException(
|
throw new ScmSecurityException(
|
||||||
"reader permission is required, access denied");
|
"reader permission is required, access to repository " + repository.getName() + " denied"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user