trying to edit bridge files to change permissions trying to edit bridge files to change 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

trying to edit bridge files to change permissions

Started by Hot Rides, August 04, 2008, 10:28:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hot Rides

Im trying to give a user group admin rights in coppermine without giving them admin rights in smf as i dont want them to appear as forum admins.

through searching I found what I was suppossed to edit, but the coding is different as expected and now im not sure how to edit it.

this is what I was supposed to find

// Group ids - admin and guest only.
                $this->admingroups = array($this->use_post_based_groups ? 101 : 1);
                $this->guestgroup = $this->use_post_based_groups ? 1 : 3;

101 is the cpm admin group
1 is the smf admin group
im guessing the ":" is an equal
the group im wanting to add is 13

I was figuring I would need to change it to this

// Group ids - admin and guest only.
                $this->admingroups = array($this->use_post_based_groups ? 101 : 1, 13);
                $this->guestgroup = $this->use_post_based_groups ? 1 : 3;

but my text editor made it seem like it was incorrect
what am I missing?????


thanks in advance

Nibbler


Hot Rides


Hot Rides

I changed the code and it did not give the desired effect, actually apperas that it did nothing. I even ran update.php thinking it might help. any ideas?

Nibbler

Find


$USER_DATA['can_see_all_albums'] = $USER_DATA['has_admin_access'] = array_intersect($USER_DATA['groups'],$this->admingroups) ? 1 : 0;


After that, add

echo 'User is in groups: ';
print_r($USER_DATA['groups']);
echo 'Admin groups are: ';
print_r($this->admingroups);

Hot Rides

QuoteUser is in groups: Array (
  • => 102 [1] => 113 [2] => 109 ) Admin groups are: Array (
  • => 101 [1] => 13 )
It looks like its adding 100 to all smf member groups i'm gonna change 13 to 113 and see

Hot Rides

that got it, thanks again, im getting better at this stuff from the help i receive