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: Moderators in phpBB assigned as Admins in Coppermine  (Read 2991 times)

0 Members and 1 Guest are viewing this topic.

lumens

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Moderators in phpBB assigned as Admins in Coppermine
« on: February 01, 2006, 11:52:06 pm »

Hi,

I use Coppermine 1.4.3 with phpBB2.0.18. Everything works fine, but i want the moderators from the phpBB forum (user_level=2) to have administrator rights in the Coppermine gallery.

I added this line in phpbb2018.inc.php:

if ($this->userlevel == 2 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) array_unshift($data, 102);
if ($this->userlevel == 1 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) array_unshift($data, 102);
if ($this->userlevel == 0) array_unshift($data, 2);

but nothing happened  :(

Can you please tell me what should I change to do that?

Thank you in advance for your time  :) !
« Last Edit: February 02, 2006, 12:45:57 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Moderators in phpBB assigned as Admins in Coppermine
« Reply #1 on: February 02, 2006, 12:21:28 am »

Are you actually using post based groups ? If not then you need to edit the other bit

Code: [Select]
$data[0] = ($this->userlevel == 1 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) ? 1 : 2;
to
Code: [Select]
$data[0] = ($this->userlevel == 1 || $this->userlevel == 2 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) ? 1 : 2;
Logged

lumens

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Moderators in phpBB assigned as Admins in Coppermine
« Reply #2 on: February 02, 2006, 12:43:58 am »

It works!

Thank you very much!  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.