* Added User paremeter to Revision::userCan(), Revision::userCanBitfield(), LogEvents...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 12 Oct 2011 15:09:04 +0000 (15:09 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 12 Oct 2011 15:09:04 +0000 (15:09 +0000)
commit0da17a29c341fd47e1527282bdab7a0dec4b16db
treecc59ac0703d0f7dbb6bdaaef728c04106700d66f
parent10256734e04df78d9cd75324acf6a0d14ac24a59
* Added User paremeter to Revision::userCan(), Revision::userCanBitfield(), LogEventsList::userCan(), LogEventsList::userCanBitfield(), File::userCan() and its subclasses so that they can check against any user instead of always $wgUser.
* Updated callers that have a context or may use another user than $wgUser
* Revision::getUser(), Revision::getUserText(), Revision::getComment() and Revision::getText() also have a User as parameter, but it will be used only when Revision::FOR_THIS_USER is passed in the first parameter
13 files changed:
includes/ChangesList.php
includes/LogEventsList.php
includes/Revision.php
includes/RevisionList.php
includes/filerepo/ArchivedFile.php
includes/filerepo/File.php
includes/filerepo/OldLocalFile.php
includes/revisiondelete/RevisionDelete.php
includes/specials/SpecialContributions.php
includes/specials/SpecialDeletedContributions.php
includes/specials/SpecialMergeHistory.php
includes/specials/SpecialRevisiondelete.php
includes/specials/SpecialUndelete.php