Groups
Groups
Sign in
Groups
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
hide register link on page
70 views
Skip to first unread message
Omi Chiba
unread,
Nov 9, 2011, 4:58:40 PM
11/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
I'm using ldap and out of box login. I don't want to show register
link on page so I did this.
auth.settings.actions_disabled=['register']
This will hide the register link on page but when I create new user
from database
administration menu by clicking insert new auth_user, it will create
the record but the user cannot login ! It says invalid login.
If I remove the "auth.settings.actions_disabled=['register']", I can
do it from the admin menu.... very strange.
Can we just hide the link without loosing the ability to create from
admin menu ?
Anthony
unread,
Nov 9, 2011, 5:12:30 PM
11/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
Maybe precede the actions_disabled with:
if request.controller != 'appadmin':
Anthony
Omi Chiba
unread,
Nov 9, 2011, 5:31:41 PM
11/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
It worked !!
I never come up with the idea without your help !
Reply all
Reply to author
Forward
0 new messages