diff options
Diffstat (limited to 'src/meetingtools/apps/cluster')
-rw-r--r-- | src/meetingtools/apps/cluster/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meetingtools/apps/cluster/models.py b/src/meetingtools/apps/cluster/models.py index 7b59771..3c65d57 100644 --- a/src/meetingtools/apps/cluster/models.py +++ b/src/meetingtools/apps/cluster/models.py @@ -30,6 +30,6 @@ def acc_for_user(user): domain = "nordu.net" # testing with local accts only for acc in ACCluster.objects.all(): for regex in acc.domain_match.split(): - if re.match(regex,domain): + if re.match(regex.strip(),domain): return acc - raise Exception,"I don't know which cluster you belong to... (%s)" % user.username
\ No newline at end of file + raise Exception,"I don't know which cluster you belong to... (%s)" % user.username |