I'm still having this error in 2.3.2

Every new user is added to wiki_editor group.  Even if I remove the user 
from the group, the user still has access to the wiki menu (I've specified 
menugroups - see below) and when the user logsout and logsin again they are 
automatically added back to the wiki_editor group.

I have the following statement in my model after auth.define_tables:

auth.wiki(resolve=False, manage_permissions=True, 
menugroups=['wiki_editor','wiki_author'])

On Thursday, November 8, 2012 5:25:43 PM UTC-5, Massimo Di Pierro wrote:
>
> Please open a ticket. Will fix this tonight.
>
> On Thursday, 8 November 2012 14:50:51 UTC-6, Dragan Matic wrote:
>>
>> I can confirm and replicate this bug, the same happens on windows 
>> binaries and on ubuntu with source with latest stable version - 2.2.1. 
>>
>> Here are the steps to replicate the bug:
>>
>> 1. create new app
>> 2. create new page (default/wikipage.html) and controller that returns 
>> auth.wiki(manage_permissions=True)
>> 3. go to wikipage, I am now redirected to user login
>> 4. register first user, go to default/wikipage
>> 5. create first wiki page, accept defaults and submit
>> 6. logout, register second user
>> 7. go to appadmin, check auth_membership table, second user is not a 
>> member of wiki_editor
>> 8. with second user visit default/wikipage
>> 9. go to appadmin, check auth_membership table, second user has now 
>> automatically become a member of wiki_editor
>>
>>
>> On Thursday, November 8, 2012 5:23:24 PM UTC+1, Massimo Di Pierro wrote:
>>>
>>> The rule is the first user to register is also a wiki_editor. This 
>>> should not happen for other users. If it happens it is a bug. Can you 
>>> confirm this is working as intended?
>>>
>>> On Thursday, 8 November 2012 08:00:31 UTC-6, Dragan Matic wrote:
>>>>
>>>> I am doing an auth.wiki(manage_permissions=True). 
>>>>
>>>> Basically, I want to have a wiki writer and a wiki_reader who will not 
>>>> be able to edit wiki posts. Two users (reader and writer) are registered 
>>>> and two groups are automatically opened (user_1 and user_2). For every 
>>>> wiki 
>>>> post user_1 and user_2 are set to read it and only user_1 can edit it. 
>>>> However, whenever wiki reader logs in, a row is automatically inserted 
>>>> into 
>>>> auth_membership table which maps wiki_reader user to wiki_editor group, so 
>>>> he can also edit posts. Is this a bug or is there a way to set a user to 
>>>> be 
>>>> a wiki reader only?
>>>>
>>>> Thanks
>>>> Dragan
>>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to