- if ($right == Right::SILENCEUSER) {
- // Hrm.... really we should confirm that the *other* user isn't privleged. :)
+ if (in_array($right, self::$rights)) {
+ // To silence a profile without accidentally silencing other
+ // privileged users, always call Profile->silenceAs($actor)
+ // since it checks target's privileges too.