mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-08-31 05:17:04 +02:00
Fix bug for repository owners without global role permission
Repository owners got an frontend error when they hat no permission to read the global repository roles. We therefore remove the dedicated permission to read repository. Additionally we fix the 'write' permission to match the entry in the 'permissions.xml' file.
This commit is contained in:
@@ -57,7 +57,7 @@ import static java.util.Collections.unmodifiableSet;
|
||||
* Custom role with specific permissions related to {@link Repository}.
|
||||
* This object should be immutable, but could not be due to mapstruct.
|
||||
*/
|
||||
@StaticPermissions(value = "repositoryRole", permissions = {}, globalPermissions = {"read", "modify"})
|
||||
@StaticPermissions(value = "repositoryRole", permissions = {}, globalPermissions = {"write"})
|
||||
@XmlRootElement(name = "roles")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public class RepositoryRole implements ModelObject, PermissionObject {
|
||||
|
||||
Reference in New Issue
Block a user