Merge branch 'master' into 0.9.x
This commit is contained in:
commit
6c77d86b7f
@ -41,7 +41,7 @@ class ModHelperPlugin extends Plugin
|
|||||||
|
|
||||||
function onUserRightsCheck($profile, $right, &$result)
|
function onUserRightsCheck($profile, $right, &$result)
|
||||||
{
|
{
|
||||||
if ($right == Right::SILENCEUSER || $right == Right::SANDBOXUSER) {
|
if ($right == Right::SILENCEUSER) {
|
||||||
// Hrm.... really we should confirm that the *other* user isn't privleged. :)
|
// Hrm.... really we should confirm that the *other* user isn't privleged. :)
|
||||||
if ($profile->hasRole('modhelper')) {
|
if ($profile->hasRole('modhelper')) {
|
||||||
$result = true;
|
$result = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user