1
0
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:
xiez
2012-05-26 15:31:35 +08:00
parent 5cce21353d
commit cacebb25c5
4 changed files with 19 additions and 15 deletions

View File

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