...
|
...
|
@@ -92,6 +92,7 @@ class PublicController extends AdminBaseController |
|
|
->join('__ROLE__ b', 'a.role_id =b.id')
|
|
|
->where(["user_id" => $result["id"], "status" => 1])
|
|
|
->value("role_id");
|
|
|
dump($groups);
|
|
|
if ($result["id"] != 1 && (empty($groups) || empty($result['user_status']))) {
|
|
|
$this->error(lang('USE_DISABLED'));
|
|
|
}
|
...
|
...
|
@@ -124,4 +125,4 @@ class PublicController extends AdminBaseController |
|
|
session('ADMIN_ID', null);
|
|
|
return redirect(url('/', [], false, true));
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
|
|
} |
...
|
...
|
|