dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a790d0
)
Force reindexation of User::mRights. Hooks have the possibility to unset rights,...
author
Bryan Tong Minh
<btongminh@users.mediawiki.org>
Tue, 20 May 2008 08:06:43 +0000
(08:06 +0000)
committer
Bryan Tong Minh
<btongminh@users.mediawiki.org>
Tue, 20 May 2008 08:06:43 +0000
(08:06 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
837d758
..
234752a
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-1725,6
+1725,8
@@
class User {
if ( is_null( $this->mRights ) ) {
$this->mRights = self::getGroupPermissions( $this->getEffectiveGroups() );
wfRunHooks( 'UserGetRights', array( $this, &$this->mRights ) );
+ // Force reindexation of rights when a hook has unset one of them
+ $this->mRights = array_values( $this->mRights );
}
return $this->mRights;
}