Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Permissions  (Read 2787 times)

0 Members and 1 Guest are viewing this topic.

Nirvana Forever

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Permissions
« on: October 18, 2004, 03:05:34 pm »

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
« Last Edit: October 18, 2004, 11:28:15 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Permissions
« Reply #1 on: October 18, 2004, 03:14:40 pm »

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

Code: [Select]
$USER_DATA['mgroup'] == IB_ADMIN_GROUP
Set that to

Code: [Select]
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.
Logged

Nirvana Forever

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Permissions
« Reply #2 on: October 18, 2004, 03:49:23 pm »

Cheers nibbler
:)

Only had to define once tho

Code: [Select]
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
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.