[UserFlag] Fix type of onUserRightsCheck

This commit is contained in:
Diogo Cordeiro 2020-07-21 13:37:36 +01:00
parent 67780ca4a9
commit f7ded4d87b

View File

@ -154,13 +154,13 @@ class UserFlagPlugin extends Plugin
* We define extra rights; this function checks to see if a
* user has one of them.
*
* @param User $user User being checked
* @param Profile $user User being checked
* @param string $right Right we're checking
* @param bool &$result out, result of the check
*
* @return bool hook result
*/
public function onUserRightsCheck(User $user, string $right, bool &$result): bool
public function onUserRightsCheck(Profile $user, string $right, bool &$result): bool
{
switch ($right) {
case self::REVIEWFLAGS: