This commit is contained in:
nikolark committed 2012-02-13 21:59:38 +01:00
1 parent 415430a555
commit e47e9585c1
1 file changed
-1
-1
View File
@@ -5,7 +5,6 @@ def groups_required(*group_names):
"""Requires user membership in at least one of the groups passed in."""
def in_groups(u):
if u.is_authenticated():
print u.groups
if bool(u.groups.filter(name__in=group_names)) or u.is_superuser:
return True
# Gi brukeren beskjed (muligens)