Last modified: 2011-08-02 00:46:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32158, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30158 - AccessControl extension ready only feature error
AccessControl extension ready only feature error
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
unspecified
All All
: Lowest major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-01 02:31 UTC by xhorse
Modified: 2011-08-02 00:46 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xhorse 2011-08-01 02:31:21 UTC
The (ro) feature of AccessControl extension is not exactly working as it describes.

On page http://www.mediawiki.org/wiki/Extension:AccessControl, (ro) can restrict a group's access to read only however it's only valid when the group is a mediawiki's group. When appending (ro) to a user grouplist, it doesn't working. The original design of this feature provides a finer control by appending (ro) to user name in user group definition page. 

Fix attached:
--- AccessControl.php   2011-08-01 12:30:13.976489543 +1000
+++ AccessControl_modified.php  2011-08-01 11:52:17.411637020 +1000
@@ -91,7 +91,7 @@
                                        if ($access != 'edit') {
                                                if (($usersList[$wgUser->getName()] == 'edit') && ($groups[$skupina] == 'edit')) {
                                                        $access = 'edit';
-                                               } elseif ($usersList[$wgUser->getName()] == 'read') {
+                                               } elseif ($usersList[$wgUser->getName()] == 'read' || $groups[$skupina] == 'read') {
                                                        $access = 'read';
                                                } else {
                                                        break;
Comment 1 Chad H. 2011-08-02 00:46:23 UTC
This extension is not maintained in our SVN repository, suggest talking to the author listed on the mw.org page.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links