r24294 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24293‎ | r24294 | r24295 >
Date:01:00, 21 July 2007
Author:robchurch
Status:old
Tags:
Comment:
Introduce 'UserGetRights' hook; see docs/hooks.txt for more information
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -650,6 +650,10 @@
651651 $user: user that watched
652652 $article: article object that was watched
653653
 654+'UserGetRights': Called in User::getRights()
 655+$user: User to get rights for
 656+&$rights: Current rights
 657+
654658 'UserEffectiveGroups': Called in User::getEffectiveGroups()
655659 $user: User to get groups for
656660 &$groups: Current effective groups
Index: trunk/phase3/includes/User.php
@@ -1595,6 +1595,7 @@
15961596 function getRights() {
15971597 if ( is_null( $this->mRights ) ) {
15981598 $this->mRights = self::getGroupPermissions( $this->getEffectiveGroups() );
 1599+ wfRunHooks( 'UserGetRights', array( $this, &$this->mRights ) );
15991600 }
16001601 return $this->mRights;
16011602 }
Index: trunk/phase3/RELEASE-NOTES
@@ -151,6 +151,7 @@
152152 inline, as in most browsers
153153 * Pass the user as an argument to 'isValidPassword' hook callbacks; see
154154 docs/hooks.txt for more information
 155+* Introduce 'UserGetRights' hook; see docs/hooks.txt for more information
155156
156157 == Bugfixes since 1.10 ==
157158

Follow-up revisions

RevisionCommit summaryAuthorDate
r24302Merged revisions 24276-24301 via svnmerge from...david03:42, 21 July 2007

Status & tagging log