Massimo,

Updating from web2py from 1.61.4 to 1.63.1 caused my application to
break in several ways.

I set:

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.


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.

Will I get this to work in web2py 1.63.1 or will I have to downgrade
to 1.61.4?


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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to