Last modified: 2014-09-23 19:55:37 UTC
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
Created attachment 2593 [details] 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 );
Created attachment 2595 [details] New version new version, now using the normal wiki database function. THANKS BRION!!
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
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!
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...
The config overhaul - you mean https://www.mediawiki.org/wiki/Requests_for_comment/Configuration_database_2 ?