Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
 

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

Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F

Started by Tim77, July 19, 2004, 02:16:06 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Tim77

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!

Joachim Müller

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

Tim77

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

Joachim Müller

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

GauGau

Tim77

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.

Tim77

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.

Joachim Müller

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

GauGau

Tim77


Joachim Müller

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

Tim77

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

Nibbler

Why can't you simply alter

($USER_DATA['mgroup'] == IB_ADMIN_GROUP)
to
(($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.

Tim77