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: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F  (Read 5128 times)

0 Members and 1 Guest are viewing this topic.

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« on: July 19, 2004, 02:16:06 am »

My Coppermine gallery is intigrated with my IPB user database and that all works fine... However I have a user that I want to be an admin of the gallery and not of the forum. I want to put this user in his own user group on the forum and define two different user groups as admins to Coppermine. I found the following line in the Invision bridge file......

"define('IB_ADMIN_GROUP', 4);"

I want to define "IB_ADMIN_GROUP" as BOTH "4" AND "8"

How could this be done?

Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #1 on: July 19, 2004, 07:10:19 am »

I remember there were similar requests for older versions of coppermine (and older versions of the bridge file), and as far as I remember they were not able to resolve this issue properly. Does IB support multiple griup memberships? If yes, make the other admin member of another group as well.

GauGau
Logged

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #2 on: July 19, 2004, 11:40:45 am »

It would seem that this would be a simple thing to resolve. :( If anyone is willing to tackle this it would be greatly appreciated.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #3 on: July 19, 2004, 11:52:47 am »

Please answer the question: does IB support multiple group membership?

GauGau
Logged

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #4 on: July 19, 2004, 11:07:00 pm »

Invision allows for multiple permission masks but only on group. I think it would make more sense to base the CPG permissions off of the IPB permission masks rather than the member group.
Logged

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #5 on: August 16, 2004, 01:48:36 am »

Has anyone come up with a way of doing this yet? I really need to have two different members groups as admins of the forum.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #6 on: August 16, 2004, 08:16:34 am »

you still didn't answer my question. Answer should be: "Yes" or "No".

GauGau
Logged

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #7 on: August 16, 2004, 11:00:11 am »

"No"
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #8 on: August 17, 2004, 08:10:40 am »

Then the answer to your initial question is "no" as well - you can't have a user who is not admin in your bbs, but is admin in coppermine, unless you dive into the coppermine code and come up with a hack (not recommended).

GauGau
Logged

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #9 on: August 17, 2004, 08:41:41 pm »

What if all the code in the bridge file pertaining to the admin group was duplicated for another group?
Logged

Nibbler

  • Guest
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #10 on: August 18, 2004, 12:49:06 am »

Why can't you simply alter

Code: [Select]
($USER_DATA['mgroup'] == IB_ADMIN_GROUP)to
Code: [Select]
(($USER_DATA['mgroup'] == IB_ADMIN_GROUP) || ($USER_DATA['mgroup'] == 9))
in 2 places, where 9 is the group id of the other group you want to be admin.
Logged

Tim77

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • Heather O'Rourke: The Memorial Site
Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
« Reply #11 on: August 23, 2004, 03:09:11 am »

Thanks, I will try that!
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.