[gen] Bugfix.
This commit is contained in:
parent
0dee80df3c
commit
f78ffa4b74
|
@ -275,8 +275,9 @@ class ToolMixin(BaseMixin):
|
||||||
def getAllowedValue(self):
|
def getAllowedValue(self):
|
||||||
'''Gets, for the current user, the value of index "Allowed".'''
|
'''Gets, for the current user, the value of index "Allowed".'''
|
||||||
user = self.getUser()
|
user = self.getUser()
|
||||||
# Get the user roles
|
# Get the user roles. If we do not make a copy of the list here, we will
|
||||||
res = user.getRoles()
|
# really add user logins among user roles!
|
||||||
|
res = user.getRoles()[:]
|
||||||
# Get the user logins
|
# Get the user logins
|
||||||
if user.login != 'anon':
|
if user.login != 'anon':
|
||||||
for login in user.getLogins():
|
for login in user.getLogins():
|
||||||
|
@ -1160,7 +1161,7 @@ class ToolMixin(BaseMixin):
|
||||||
BasicUserFolder.validate = validate
|
BasicUserFolder.validate = validate
|
||||||
|
|
||||||
def getUserLine(self):
|
def getUserLine(self):
|
||||||
'''Returns a info about the currently logged user as a 2-tuple: first
|
'''Returns info about the currently logged user as a 2-tuple: first
|
||||||
elem is the one-line user info as shown on every page; second line is
|
elem is the one-line user info as shown on every page; second line is
|
||||||
the URL to edit user info.'''
|
the URL to edit user info.'''
|
||||||
user = self.getUser()
|
user = self.getUser()
|
||||||
|
|
Loading…
Reference in a new issue