Mercurial > moin-gugiel
changeset 13:8b233fd84ef9
Make it work for 1.6
| author | Radomir Dopieralski <devel@sheep.art.pl> |
|---|---|
| date | Sat, 17 May 2008 13:17:34 +0200 |
| parents | f9a0910affb7 |
| children | 9496df548071 |
| files | gugiel.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gugiel.py Sat May 17 11:58:57 2008 +0200 +++ b/gugiel.py Sat May 17 13:17:34 2008 +0200 @@ -238,7 +238,7 @@ querystr={'action': 'userprefs'}, id='userprefs', rel='nofollow')) if request.user.valid: - if request.user.auth_method in request.cfg.auth_can_logout: + if request.user.auth_method in getattr(request.cfg, 'auth_can_logout', [request.user.auth_method]): userlinks.append(d['page'].link_to(request, text=_('Logout'), querystr={'action': 'logout', 'logout': 'logout'}, id='logout', rel='nofollow')) else:
