mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
Merge pull request #2662 from haiwen/org-public-repo
fix bug when org user create public repo
This commit is contained in:
@@ -156,6 +156,9 @@ class UserPermissions(object):
|
||||
"""
|
||||
|
||||
if CLOUD_MODE:
|
||||
if MULTI_TENANCY:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
elif self.user.is_staff:
|
||||
return True
|
||||
|
Reference in New Issue
Block a user