Limit Users view to Administrators

Post modules, themes or any other code you want to share with the community.

Moderator: Developers

User avatar
dkittell
Site Admin
Site Admin
Posts: 808
Joined: Tue May 25, 2004 10:32 pm
Location: Michigan, USA
Contact:

Limit Users view to Administrators

Postby dkittell » Thu Jul 20, 2006 3:55 am

I have a lot of users that use this system that don't need to see everyone else so I made a slight change in modules-addressbook-index.php

Code: Select all

if ($GO_SECURITY->has_admin_permission( $GO_SECURITY->user_id ))
   {
$menu->add_button('users', $contacts_members, $_SERVER['PHP_SELF'].'?post_action=members&addressbook_id='.$addressbook_id);
   }
David Kittell
Owner / Developer
Kittell.net
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Postby mschering » Thu Jul 20, 2006 10:54 am

You can hide them from users already if you are an admin. At the user page there is a section "User is visible to".
Best regards,

Merijn Schering
Intermesh
User avatar
dkittell
Site Admin
Site Admin
Posts: 808
Joined: Tue May 25, 2004 10:32 pm
Location: Michigan, USA
Contact:

Postby dkittell » Thu Jul 20, 2006 11:59 am

I was having problems on a previous version with that option not working for some reason.
I agree it should be quick and painless to simply do that option.
David Kittell
Owner / Developer
Kittell.net
mifzal
Posts: 21
Joined: Tue May 31, 2011 1:08 pm

Re:

Postby mifzal » Wed Jun 01, 2011 4:34 am

Intermesh wrote:You can hide them from users already if you are an admin. At the user page there is a section "User is visible to".


I've done the same. But still the Admin is visible to others.

Return to “Contributed development”

Who is online

Users browsing this forum: No registered users and 3 guests