mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
Fix bug in remove shared repo in group, and clean code.
This commit is contained in:
@@ -412,4 +412,10 @@ def get_group_repoids(group_id=None):
|
||||
repoid_list.append(repo_id)
|
||||
return repoid_list
|
||||
|
||||
|
||||
def check_group_staff(group_id_int, user_or_username):
|
||||
"""Check where user is group staff"""
|
||||
from seahub.base.accounts import CcnetUser
|
||||
if isinstance(user_or_username, CcnetUser):
|
||||
user_or_username = user_or_username.username
|
||||
|
||||
return ccnet_rpc.check_group_staff(group_id_int, user_or_username)
|
||||
|
Reference in New Issue
Block a user