mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
Fix group revoke public
This commit is contained in:
@@ -262,7 +262,7 @@ def group_revoke_public(request, group_id):
|
|||||||
return render_permission_error(request, _(u'Only administrators can make the group public'))
|
return render_permission_error(request, _(u'Only administrators can make the group public'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
p = PublicGroup.objects.get(id=group.id)
|
p = PublicGroup.objects.get(group_id=group.id)
|
||||||
p.delete()
|
p.delete()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user