Hi, You can remove a default userright by unsetting it in LocalSettings.php. For editmyusercss, this right is assigned to all users by default. Therefore, to remove it, add this line of code: $wgGroupPermissions[‘*’][‘editmyusercss’] = false; Then, to assign the right to another group, add this line of code: $wgGroupPermissions[‘customgroupname’][‘editmyusercss’] = true; Of course, replace “customgroupname” with the name of the user group that you want to have this right.
— Amanda
On Thursday, November 2, 2017, 8:54 AM, Evans, Richard K. (GRC-H000) richard.k.evans@nasa.gov wrote:
Hello,
How can I remove a basic user right available to all by default (say, "editmyusercss") , and add it as a right only available to a custom group that only Bureaucrats can assign users to? Thank you.
Ultimately, what I'm trying to do is for a private enterprise mediawiki (EMW). I want to be able to allow all externally authenticated users visting my site to be autoregistered (autocreateaccount), but I want to authorize them to view content based on other session data available to me. My goal is to set my site up to deny all of the basic default privledges that come with merely being a registered user on the site and then to auto add users to specific custom groups based on additional identification data I get from the browser session header. I think I can do all this once I know how to create custom groups and remove default basic rights to the custom groups from the localsettings.php file. Then I can manually assign users to custom groups and work on being able to autoassign users to groups later.
Thank you! -Rich
_______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l