Log in

View Full Version : ADmin plugin premission


Ghostt
05-08-2014, 07:43 PM
How can i disable permission for admins for the custom plugin settings ?

also how can i set up the moderation log so only certain admin can check the moderation from other administrators?

kh99
05-08-2014, 08:51 PM
If you're talking about access to the Plugins & Products menu, then the permission is "Can Administer Plugins" under Usergroups > Administrator Permissions.

You can also give access to the moderator log in the same place, but as far as I know it's just a yes/no setting, so I don't believe there's any way to allow users to see only certain groups.

Ghostt
05-09-2014, 01:07 AM
no im talking about 2 custom plugin setting menu in the acp .

Ghostt
05-11-2014, 07:28 PM
no ideas?

kh99
05-12-2014, 08:54 AM
So you're saying that a custom plugin or product has added settings, and you want to limit who has access to them? I don't believe there's any way to do that unless it's supported by the product.

Simon Lloyd
05-13-2014, 12:54 AM
you could add a userid check to the plugin or to the bitfield xml for it.

Ghostt
05-14-2014, 12:04 AM
im not php expert .can you show me how? thank you

Simon Lloyd
05-14-2014, 02:22 AM
Well as i cant see your plugin or xml...etc you need to wrap the plugin like thisif (in_array($vbulletin->userinfo['userid'], array(2,8))){
ALL THE REST OF THE PLUGIN
}else{
print_no_permissiion();
}you can change the 2 & 8 for whichever userid's you wish to have access or extend it by adding id's seperated by a comma like this: 2,8,10,2032 ....etc

Ghostt
05-16-2014, 11:20 PM
thanks. in which file ive to edit?

Simon Lloyd
05-17-2014, 04:49 PM
In the plugin not a file.

Ghostt
05-17-2014, 04:51 PM
but there are 5 different pluggins.. for this addon

Simon Lloyd
05-18-2014, 04:53 AM
Then wrap them all!, how can i possibly comment on which plugin when you:

Haven't said what the mod is
Haven't supplied the plugin code
Haven't told us what the plugins relate to
Haven't told us what you have previously tried and where.

Ghostt
05-18-2014, 01:08 PM
i dont gave this points because i think they are not needed to solve the issue

ok ill try thanks.

Simon Lloyd
05-18-2014, 01:13 PM
In that case you have the solution - good luck!