Page MenuHomePhabricator

Extension for storing non-default $wgGroupPermission's in MySQL table
Open, LowPublicFeature

Description

Author: marco

Description:
Hi all, I have created an extension which allows to store permissions in MySQL
table and no longer in Localsettings.php. I would be very happy if someone could
look into the code and tell me if it is bad/good and if it can be put into
MediaWiki's SVN repository.

Greets,
Marco


Version: unspecified
Severity: enhancement
Platform: PC

Details

Reference
bz7750

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:24 PM
bzimport set Reference to bz7750.
bzimport added a subscriber: Unknown Object (MLST).

marco wrote:

The Extension

MySQL table definition:

CREATE TABLE permissions (

pm_group varchar(20) NOT NULL default '*',
pm_key varchar(20) NOT NULL,
pm_value tinyint(1) NOT NULL

);

attachment Permissions.php ignored as obsolete

marco wrote:

New version

new version, now using the normal wiki database function.

THANKS BRION!!

attachment Permissions.php ignored as obsolete

*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*

sumanah wrote:

Marco, thanks for writing this. I added the "need-review" keyword to indicate
that your code awaits review. (I'm guessing your extension probably needs updating to work with MediaWiki's current trunk, though.) You might just want to apply for commit access and commit your extension to Subversion to get review faster -- see https://www.mediawiki.org/wiki/Commit_access_requests#Requesting_commit_access . Sorry for the wait!

sumanah wrote:

Marco, if you are still interested in this issue, please drop in to our IRC channel (info at https://www.mediawiki.org/wiki/MediaWiki_on_IRC ) to talk about your approach with us. (The code you wrote no longer works with MediaWiki's codebase.) Thanks! I'm sorry for the delay in response.

This is probably something that has little value moving to the database alone, it really should just be done as part of the larger config overhaul (2012, fingers crossed!), rather than then having another format to migrate away from...

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.