Permissions Permissions
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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