def groupdeny(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")
try:
id = str(id)
group = str(group)
ldaptools.modgroup(id, MOD_DELETE, group+"-pending")
flash("Membership of %s denied for %s" % (group, id), "success")
return redirect("/groups/admin")
except:
flash("Membership application not found", "danger")
return redirect("/groups/admin")
评论列表
文章目录