fixed unwanted membershin in wiki, thanks Alan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-21 11:34:52) dev
|
Version 2.00.0 (2012-08-21 11:39:24) dev
|
||||||
|
|||||||
+1
-1
@@ -4519,7 +4519,7 @@ class Wiki(object):
|
|||||||
if tag: db.wiki_tag.insert(name=tag,wiki_page=page.id)
|
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_insert.append(update_tags_insert)
|
||||||
db.wiki_page._after_update.append(update_tags_update)
|
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():
|
not 'wiki_editor' in auth.user_groups.values():
|
||||||
group = db.auth_group(role='wiki_editor')
|
group = db.auth_group(role='wiki_editor')
|
||||||
gid = group.id if group else db.auth_group.insert(role='wiki_editor')
|
gid = group.id if group else db.auth_group.insert(role='wiki_editor')
|
||||||
|
|||||||
Reference in New Issue
Block a user