User "Aaron Schulz" posted a comment on MediaWiki.r99633. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99633#c25010 Commit summary:
* 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 Comment: Why not just allow passing a User as $audience instead? _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
