def groupremove(id, group):
if ("admin" not in current_user.get_authgroups()) and ("admin-%s" % group not in current_user.get_authgroups()):
flash("You do not have the right to do that.", "danger")
return redirect("/groups/admin")
id = str(id)
group = str(group)
ldaptools.modgroup(id, MOD_DELETE, group)
flash("Membership of %s removed for %s" % (group, id), "success")
return redirect("/groups/list/"+group)
评论列表
文章目录