forked from GNUsocial/gnu-social
ModHelper -> silence only, don't let them sandbox (it's too confusing atm without a good audit trail)
This commit is contained in:
parent
9d9e80ea21
commit
90e54f6cf0
@ -41,7 +41,7 @@ class ModHelperPlugin extends Plugin
|
||||
|
||||
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. :)
|
||||
if ($profile->hasRole('modhelper')) {
|
||||
$result = true;
|
||||
|
Loading…
Reference in New Issue
Block a user