Fix a bug where org admin was not sufficient for the modify repository permission.

This commit is contained in:
yackob03 2013-11-07 12:52:46 -05:00
parent babc6fa867
commit d064af2800

View file

@ -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):