mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
Move "User::deny()" to own method and update usages
This commit is contained in:
parent
6aee153bbd
commit
b4f6e8fda1
4 changed files with 49 additions and 35 deletions
|
@ -81,14 +81,18 @@ class Users extends BaseAdmin
|
|||
if (!empty($_POST['page_users_approve'])) {
|
||||
require_once 'mod/regmod.php';
|
||||
foreach ($pending as $hash) {
|
||||
User::allow($hash);
|
||||
if (User::allow($hash)) {
|
||||
info(DI::l10n()->t('Account approved.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($_POST['page_users_deny'])) {
|
||||
require_once 'mod/regmod.php';
|
||||
foreach ($pending as $hash) {
|
||||
user_deny($hash);
|
||||
if (User::deny($hash)) {
|
||||
notice(DI::l10n()->t('Registration revoked'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue