2.0rc2 how to: disable "switch user" on the login box Posted by Techdragon 30 Jul 2008 14:17 UTC How do you disable the "switch user" feature?
Posted by Gary Cunningham-Lee 31 Jul 2008 04:15 UTC 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
Posted by Techdragon 01 Aug 2008 15:37 UTC Gary This worked perfectly! Thank you so much I upgraded to RC4 BTW