Fix a bug where org admin was not sufficient for the modify repository permission.
This commit is contained in:
parent
babc6fa867
commit
d064af2800
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ class ModifyRepositoryPermission(Permission):
|
||||||
admin_need = _RepositoryNeed(namespace, name, 'admin')
|
admin_need = _RepositoryNeed(namespace, name, 'admin')
|
||||||
write_need = _RepositoryNeed(namespace, name, 'write')
|
write_need = _RepositoryNeed(namespace, name, 'write')
|
||||||
org_admin_need = _OrganizationNeed(namespace, 'admin')
|
org_admin_need = _OrganizationNeed(namespace, 'admin')
|
||||||
super(ModifyRepositoryPermission, self).__init__(admin_need, write_need)
|
super(ModifyRepositoryPermission, self).__init__(admin_need, write_need,
|
||||||
|
org_admin_need)
|
||||||
|
|
||||||
|
|
||||||
class ReadRepositoryPermission(Permission):
|
class ReadRepositoryPermission(Permission):
|
||||||
|
|
Reference in a new issue