Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: kwakoid on March 31, 2015, 02:34:45 AM

Title: How to duplicate administrator membergroup?
Post by: kwakoid on March 31, 2015, 02:34:45 AM
Well I have the same problem as http://www.simplemachines.org/community/index.php?topic=184561.0
I have two kind of administrators who need to have full permissions but be separated by two different groups: old and new admins. I also have plugins which made no permission checkboxes at all and their permissions are automatically bound to administrator membergroup, so I can't add their permissions to other groups.

Any idea how to duplicate administrator group some way?
Title: Re: How to duplicate administrator membergroup?
Post by: Colin on March 31, 2015, 04:36:06 AM
Hi Kwakoid,

Welcome to SMF. Unfortunately there is not an easy solution to this. The administrator group is a special group. The best bet is to customize the modifications to use permission hooks rather than try to hack another admin group.

Out of curiosity, why can't you keep just everyone in the one administrators group?
Title: Re: How to duplicate administrator membergroup?
Post by: kwakoid on April 01, 2015, 02:59:40 AM
Don't want to touch 'feelings' of old admins who are visiting still but not doing anything by getting new ones in "Admin" group and moving old ones into duplicated "Admins on pension"  :P
Title: Re: How to duplicate administrator membergroup?
Post by: Illori on April 01, 2015, 05:16:39 AM
if both groups would have the same permissions, just give the pension a new primary group and add the admin group as an additional group.
Title: Re: How to duplicate administrator membergroup?
Post by: kwakoid on April 02, 2015, 03:29:23 AM
Sadly some of plugins we use don't have ability to add permissions to other groups than Admin one, simply no checkboxes in "Permissions" page.
Title: Re: How to duplicate administrator membergroup?
Post by: margarett on April 02, 2015, 05:03:31 AM
Administrator has no permissions as he is allowed to do everything. If you grant ALL permissions in a certain membergroup, it will not be a "Administrator" in the true sense of it (code-wise) but should work pretty much like like it.
When it comes to plugins, it depends. Can you give an example?
Title: Re: How to duplicate administrator membergroup?
Post by: Kindred on April 02, 2015, 09:18:05 AM
I suspect he is talking about any mod that uses is_admin instead of checking an jndividual permission.

However, setting thd secondary group to admin shoukd actually do the trick. I use that trick on 3 forums that i run in order to put my account in a spwcisl displayed group.