SimpleMachines / smf-mw-auth

SMF MediaWiki Authentication
https://www.simplemachines.org
Other
23 stars 18 forks source link

can't assign bureaucrat role anyhow #5

Closed snoer closed 7 years ago

snoer commented 10 years ago

since I can't login with the mediaWiki's admin account the only possibility to grant another user bureaucrat rights seems to do so via LocalSettings.php

I removed the Admin user via phpmyadmin from the wiki_users and created the account again after adding the following to my LocalSettings.php.

$wgSMFSpecialGroups = array( 1 => 'bureaucrat' );

this doesn't seem to have any effect. I run SMF 2.0.4, MediaWiki 1.21

emanuele45 commented 10 years ago

Take in consideration that group changes are not applied "immediately", it should take about half an hour or more to be effective.

That said I haven't yet tested the issue so I can't say if the bureaucrat group has some other trick.

emanuele45 commented 10 years ago

As far as I can see after a bit of testing, bureaucrat is a very special group and cannot be assigned lightly, also in MW you must be bureaucrat to assign or remove the bureaucrat role.

I think the behaviour is intended: the bridge assigns roles that can be normally assigned, if you want all your admins to be bureaucrat I think there is something more to change. If you notice even only to assign the sysop role (that has less power than bureaucrat), the bridge uses a special variable: $wgSMFAdminGroupID. I think the idea is the same. ;)

jdarwood007 commented 7 years ago

This is how MW handles the bureaucrat role. It could possibly change in the newer auth plugins.