8
ok. i did it like that:
1.) system_blocks.php, function: b_system_user_show()
i added the following lines:
if ($xoopsUser->isAdmin(0)) {
$block['isAdmin'] = true;
2.) tpls -> system -> system_block_user.html
i changed
<{if $xoosp_isadmin}>
to
<{if $block.isAdmin}>
Now the users with some mod-admin-rights can see the adminbutton but they cant enter the adminmenu because of missing access rights.
so i opened admin.php in my root dir an changed
if ( !$xoopsUser->isAdmin() ) { // line 36
to
if ( !$xoopsUser->isAdmin(0) ) {
Is it ok or are there any security-reasons for why i shouldn't do that?