![]() |
|
Hiding what an admin can see - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Hiding what an admin can see (/thread-6944.html) |
Hiding what an admin can see - stupot - 21-04-2010 Hi. Is there anyway or an easy way of hiding what a admin ( other than a master admin account ) can see on the admin pages? For example if I set a user so they can only upload images I want to hide the rights check boxes and manage albums toggle... Is there a way of including an extra css file if a user only has limited rights for example. Any help welcomed. Sp Hiding what an admin can see - special-k - 21-04-2010 I came up with a somewhat crude way to do this. I went through and put a loop (see below) around all options that I did not want the other admins to see. ` if($_zp_current_admin['user']=="my_username") { } ` So you can just hide all the tabs that you don't want others to see. I did this with plugins and themes since I don't want the other admins to tinker with it. Hiding what an admin can see - kagutsuchi - 21-04-2010 You should read this from the User Guide: http://www.zenphoto.org/2008/07/an-overview-of-zenphoto-users/ What users can see is all dependent on the user's rights, including the tabs on the back-end. If you don't want the user to see something in particular, then don't give the user those rights. Hiding what an admin can see - stupot - 21-04-2010 Ok... "user A" has the following rights "Album" and "upload"... however on "user A's" admin page the check boxes are still displayed, They cant select anything but they are still displayed nonetheless... I just want to find a way to hide those checkboxes from being displayed... Any thoughts? SP Hiding what an admin can see - kagutsuchi - 21-04-2010 Ahh, to remove that from the user's admin page you would indeed have to hack the file Hiding what an admin can see - sbillard - 21-04-2010 Why on earth would you want to hide from the user what rights he has? Are you concerned that he will complain to you about not having enough priviledges? Hiding what an admin can see - stupot - 22-04-2010 Got it in one... Not so much concerned as fed up with answering the same question from what has so far been every user the question "I cant seem to change my privilages... Is it not working?". It would just make life a bit easier if it was not there the "manage albums" toggle was easy enough to remove from the user's page with a bit of css and still keep it on the master admin... and I would do the same with the check boxes but there is nothing for me to get hold of with css...If I remove it from one page it gets removed from all... Sp Hiding what an admin can see - acrylian - 22-04-2010 Well, I would think that briefing your users beforehand would be quite normal.. I mean it is quite normal that users can't change their own privileges if it is not their own site, isn't it? Hiding what an admin can see - stupot - 22-04-2010 We do tell them what they can and cant do... But dont forget we are dealing with the human ability to not see exactly what is written in front of them... Hiding what an admin can see - acrylian - 22-04-2010 Do you have that much users that answering a small question is just that problem? Why not send a group mail to them all? Hiding what an admin can see - stupot - 22-04-2010 Its sorted albeit a bit belt and braces... I have put "N/A" on the labels in "lib-auth.php" next to the ones that they dont have access to... it will say the same in the master admin section but we know what we are doing so its ok But to answer your question, We are hoping to have a lot of users, and yes rather than answering the same question over and over again it would be easier to just not have to answer it... One user asked the same question in at least 10 different ways recently... SP Hiding what an admin can see - acrylian - 22-04-2010 [i]One user asked the same question in at least 10 different ways recently...[/i] Hiding what an admin can see - sbillard - 22-04-2010 We can add a note to the page saying that you must have admin priviledges to change those items. |