Massimo,

I updated to 1.63.5 and got the updates from r992, but thats did not
solve my first problem:


> auth.settings.login_url=URL(r=request,c='authentication',f='login')
> auth.settings.login_next=URL(r=request,c='core',f='index')
> auth.settings.logout_next=URL(r=request,c='default',f='index')
>
> In 1.61.4 the first two worked, in 1.63.1, when the user logs in the
> next page is default/index instead of core/index. Commenting the
> auth.settings.logout_next=.. doesn't make any difference.


Besides, this issue, when I expose a function from appadmin, I am
redirected to login, when I login I am redirected to:
http://127.0.0.1:8000/admin/default/design/cms, which cannot possibly
be correct.

I bookmarked the login page. When I login I am redirected to:
http://127.0.0.1:8000/cms/authentication/login. Whereas I set
auth.settings.login_next=URL(r=request,c='core',f='index')


Is it possible that the issue described below has something to do with
the user only being allowed to be a member of one group?



> In 1.61.4 I had the following records in my auth_membership table
>
> id        user_id        group_id
> 1            1                  1
> 2            2                  1
> 3            2                  2
>
> Furthermore I had two controllers core.py and site.py. In these
> controllers I had functions which read like:
>
> In core.py:
>
> @auth.requires_membership('core_manager')
> def update_company():
>     ...
>     return dict(form=form)
>
> @auth.requires_membership('core_manager')
> def crud_address():
>     ....
>     return dict(form=form,records=records)
>
> In site.py:
>
> @auth.requires_membership('site_manager')
> def crud_openinghour():
>     ...
>     return dict(form=form,records=records)
>
> @auth.requires_membership('site_manager')
> def update_openinghour():
>     ...
>     return dict(form=form)
>
> When user 1 was logged in he had access to the functions in core.py (a
> core_navigation menu was displayed). When user 2 was logged in he had
> access to the functions in both core.py and site.py (a core_navigation
> and site_navigation menu were displayed)
>
> In web2py this worked all flawless. In web2py 1.63.1 only core.py and
> core_navigation work all right. When user 2 logs in both menu's are
> displayed, however, every time user 2 navigates to one of the
> functions in site.py a flash is displayed: Insufficient privileges.



Kind regards,

Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to