mirror of
https://github.com/friendica/friendica
synced 2025-03-13 12:28:26 +00:00
Fix code style in Moderation\Users classes
This commit is contained in:
parent
e6f4df3442
commit
3799f6c69e
3 changed files with 7 additions and 3 deletions
|
@ -150,6 +150,7 @@ class Active extends BaseUsers
|
|||
}
|
||||
|
||||
$this->baseUrl->redirect('moderation/users/active');
|
||||
// no break
|
||||
case 'block':
|
||||
self::checkFormSecurityTokenRedirectOnError('moderation/users/active', 'moderation_users_active', 't');
|
||||
User::block($uid);
|
||||
|
|
|
@ -148,6 +148,7 @@ class Blocked extends BaseUsers
|
|||
$this->systemMessages->addNotice($this->t('You can\'t remove yourself'));
|
||||
}
|
||||
$this->baseUrl->redirect('moderation/users/blocked');
|
||||
// no break
|
||||
case 'unblock':
|
||||
self::checkFormSecurityTokenRedirectOnError('/moderation/users/blocked', 'moderation_users_blocked', 't');
|
||||
User::block($uid, false);
|
||||
|
|
|
@ -161,11 +161,13 @@ class Index extends BaseUsers
|
|||
}
|
||||
|
||||
$this->baseUrl->redirect('moderation/users');
|
||||
// no break
|
||||
case 'block':
|
||||
self::checkFormSecurityTokenRedirectOnError('moderation/users', 'moderation_users', 't');
|
||||
User::block($uid);
|
||||
$this->systemMessages->addNotice($this->t('User "%s" blocked', $user['username']));
|
||||
$this->baseUrl->redirect('moderation/users');
|
||||
// no break
|
||||
case 'unblock':
|
||||
self::checkFormSecurityTokenRedirectOnError('moderation/users', 'moderation_users', 't');
|
||||
User::block($uid, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue