From 1c3423d452d0ca1e20dff36ce05c2e35d2894f29 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 2 May 2011 14:43:23 +0200 Subject: new acl - first version --- src/meetingtools/apps/auth/utils.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/meetingtools/apps/auth/utils.py') diff --git a/src/meetingtools/apps/auth/utils.py b/src/meetingtools/apps/auth/utils.py index 3a7efe6..1a0174c 100644 --- a/src/meetingtools/apps/auth/utils.py +++ b/src/meetingtools/apps/auth/utils.py @@ -14,13 +14,6 @@ def anonid(): def groups(request): groups = [] if request.user.is_authenticated(): - if request.session and request.session.has_key('entitlement'): - groups = groups + request.session['entitlement'] - - if '@' in request.user.username: - (local,domain) = request.user.username.split('@') - groups.append(domain) - for e in ('member','employee','student'): - groups.append("%s@%s" % (e,domain)) + groups = request.user.groups return groups \ No newline at end of file -- cgit v1.1