Hi,
Recently I installed plugin_wiki as a way to construct our community site for the local hackerspace. After looking for a while I found:
https://groups.google.com/forum/?fromgroups=#!topic/web2py/WoAjeY6W3_s
Which tells us that people needs to be part of the "editor" group in order to get the functionality of plugin_wiki enabled for them. I can made this manually, but I would like to make this automatically. Serching in the community portal the only thing I found on membership until now is this:
http://www.web2pyslices.com/slice/show/1542/manage-users-and-memebership-in-the-same-form
but is not quite I'm looking for. As always, pointer to the solution would be appreciated.




Answers (1)
Comments (1)
0
rochacbruno 13 years ago
Put this in the models, just after auth.define_tables() def give_editor_poermission(form): group_id = auth.id_group("editor") auth.add_membership(group_id, auth.user.id) auth.settings.register_onaccept = give_editor_permissionreplies (1)