Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
How do i Hide the User nav bar item in admin from everyone except the super admin? ive done the adding additional users disable but id like to hide the entire users nav bar link so normal admins wont see the admins or super admins
A simplistic way would be to add this to addons/kfunctions.php file -
Code: Select all
/*
    Remove 'Users' section for everyone except super-admins
*/
$FUNCS->add_event_listener( 'alter_admin_menuitems', 'my_func_alter_admin_menuitems' );
function my_func_alter_admin_menuitems( &$menu_items ){
    global $AUTH;

    if( $AUTH->user->access_level < '10' ){ // if not a super-admin
        if( array_key_exists('users', $menu_items) ){
            unset( $menu_items['users'] )  ;
        }
    }
}
The administration item still shows, so it looks like there is something missing inside it...
Please try using the following solution -
viewtopic.php?f=8&t=10715&start=10#p28371
4 posts Page 1 of 1
cron