Permissions Permissions
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Permissions

Started by Nirvana Forever, October 18, 2004, 03:05:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nirvana Forever

As per my other thread, we are currently using coppermine 1.2 and iB 1.3

Id like to be able to grant the super mods - and possible mods - from iB the same level of access on coppermine as the administrators
ie
can access all of coppermines admin functions

Is this even possible ?
If so, how ?

Thanks

Nibbler

You can change the bridge file to make anyone you like admin.

$USER_DATA['mgroup'] == IB_ADMIN_GROUP

Set that to

in_array($USER_DATA['mgroup'], array(IB_ADMIN_GROUP,7,8,9))

(in 2 places)

Where 7, 8 and 9 are the groups you want to be admin.

This is based on 1.3.2 code of course.

Nirvana Forever

Cheers nibbler
:)

Only had to define once tho

in /image-gallery/bridge/invisionboard.inc.php

        define('USER_GROUP', $USER_DATA['group_name']);
        define('USER_GROUP_SET', '(' . $USER_DATA['group_id'] . ')');
//      define('USER_IS_ADMIN', USER_ID ? ($USER_DATA['mgroup'] == IB_ADMIN_GROUP) : 0);
        define('USER_IS_ADMIN', USER_ID ? (in_array($USER_DATA['mgroup'], array(IB_ADMIN_GROUP,4,6))) : 0);

where 4 = admin
where 6 = smod


Thanks again
Greatly appreciated