Last modified: 2007-10-13 04:04:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11609 - isAllowed hook
isAllowed hook
Product: MediaWiki
Classification: Unclassified
User blocking (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-10-09 01:11 UTC by Aran
Modified: 2007-10-13 04:04 UTC (History)
0 users

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


Description Aran 2007-10-09 01:11:06 UTC
I've been looking at the code surrounding security, and I'm wondering why the userCan hook isn't called from isAllowed since most of the calls made to determine whether an action can be performed call userCan, yet all of them call isAllowed. Even if userCan is best where it is, wouldn't it be a good idea to have an isAllowed hook?
Comment 1 Aran 2007-10-09 01:12:17 UTC
(sorry I meant most *dont* call userCan)
Comment 2 Aran 2007-10-13 04:04:13 UTC
Silly me, there's no need for such a hook since the result it returns is determined by the global array which can be adjusted. Sorry :-/

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