Loading...
 
Skip to main content

Development


2.0rc2 how to: disable "switch user" on the login box

How do you disable the "switch user" feature?

There's no config switch for this. I guess the idea is that admins are trusted users and may want to use the switch user in order to test perms and so on and the switch form doesn't take up much space.

If you want to get rid of it it's necessary to edit the file: templates/modules/mod-login_box.tpl. There's an "if admin" check at about line 8 which has its closing /if tag at about line 22 (this is in the Tikiwiki 2.0rc4 files I'm looking at) and these contain a form with the switch user code inside. The "if admin" tags and everything between them can be deleted or commented out with Smarty comment tags — {* commented out *} .

-- Gary


wow thank you gary

Gary

This worked perfectly! Thank you so much

I upgraded to RC4 BTW