trying to edit bridge files to change permissions trying to edit bridge files to change permissions
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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