summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2001-11-08 20:54:26 +0000
committerJens Vagelpohl <jens@netz.ooo>2001-11-08 20:54:26 +0000
commit28b7e805d0cef61ce58045b889cebe0c0fd6edc1 (patch)
tree971f1450fa41da435232c05e9d2c3260441f4781
parent809c37e8907f3eb66ceb56956d31ccbf286a9a33 (diff)
downloadLDAPLoginAdapter-28b7e805d0cef61ce58045b889cebe0c0fd6edc1.zip
LDAPLoginAdapter-28b7e805d0cef61ce58045b889cebe0c0fd6edc1.tar.gz
Added "Authenticated" role
-rw-r--r--LDAPUser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/LDAPUser.py b/LDAPUser.py
index 6d22f62..d76123e 100644
--- a/LDAPUser.py
+++ b/LDAPUser.py
@@ -55,7 +55,10 @@ class LDAPUser(BasicUser):
def getRoles(self):
""" Return a tuple with the user's roles """
- return tuple(self.roles)
+ if self.name == 'Anonymous User':
+ return tuple( self.roles )
+ else:
+ return tuple( self.roles ) + ( 'Authenticated', )
def _getPassword(self):