mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix login and user controllers behaviour if firewall is disabled
This commit is contained in:
@@ -152,7 +152,7 @@ class UserController extends BasePageController
|
||||
$roleName = Role::query()->where('id', $request->input('role'))->value('name');
|
||||
if ($roleName === 'Disabled') {
|
||||
$blockedUser = User::find($request->input('id'));
|
||||
if (\Firewall::isBlacklisted($blockedUser->host) === false) {
|
||||
if (env('FIREWALL_ENABLED') === true && \Firewall::isBlacklisted($blockedUser->host) === false) {
|
||||
\Firewall::blacklist($blockedUser->host);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user