Hello, 
I'm still searching for help

This is my code:

response.menu = [
    (T('Home'), False, URL(request.application,'default','index'), []),
    ]
if auth.has_membership('admin'):#if auth.has_membership('Expert'):
    response.menu = [
    (T('Questions'), False, URL('que_forum', 'expert_homepage'), []),
    (T('My Questions'), False, URL('que_forum', 'myquestions'), []),
    (T('Notifications'), False, URL('que_forum', 'noti'), [])]


else:
    response.menu = [
    (T('Questions'), False, URL('que_forum', 'expert_homepage'), []),
    (T('Search'), False, URL('default', 'search'), []),
    (T('Feedback'), False, URL('default', 'feedback'), []),
    (T('Notifications'), False, URL('que_forum', 'noti'), [])]


if auth.has_membership('user_7'):
    response.menu.append((T('Admin Space'),False,None,[
    (T('Manage Users'), False, URL('que_forum', 'manage'), [])]))


if auth.has_membership('Super_admin'):
    response.menu.append((T('Admin Management'),False,None,[
    (T('Manage Users'), False, URL('que_forum', 'manage'), []),
    (T('Manage Groups'), False, URL('plugin_web2admin', 'plugin_web2admin'), 
[])]))


On Saturday, April 25, 2020 at 10:07:49 PM UTC+3, Maurice Waka wrote:
>
> Hello 
> I know guys have busy schedules but please help here
>
> On my mobile app, I have trouble logging out when using the menu option 
> since the logout, profile, password options are inactive.
> How can I activate them or the sub-menus? Only the highlighted menu is 
> active
> See attached.
> Regards
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7446428d-e277-4ea8-8f02-46ab9cfdad94%40googlegroups.com.

Reply via email to