From f09ecfd4587efa377015264ebfb6f58c7fc3ac4d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 21 Aug 2012 11:39:27 -0500 Subject: [PATCH] fixed unwanted membershin in wiki, thanks Alan --- VERSION | 2 +- gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 12d7552a..ebb7c609 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-21 11:34:52) dev +Version 2.00.0 (2012-08-21 11:39:24) dev diff --git a/gluon/tools.py b/gluon/tools.py index 7ebeae8e..a3cd5a0b 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -4519,7 +4519,7 @@ class Wiki(object): if tag: db.wiki_tag.insert(name=tag,wiki_page=page.id) db.wiki_page._after_insert.append(update_tags_insert) db.wiki_page._after_update.append(update_tags_update) - if check_credentials(current.request) and \ + if auth.user and check_credentials(current.request) and \ not 'wiki_editor' in auth.user_groups.values(): group = db.auth_group(role='wiki_editor') gid = group.id if group else db.auth_group.insert(role='wiki_editor')