fix no permission redirect
This commit is contained in:
parent
e36e438d9e
commit
cffe2ec89c
|
@ -11,7 +11,8 @@ class PagesController extends Controller
|
|||
|
||||
public function permissionDenied()
|
||||
{
|
||||
if (config('administrator.permission')) {
|
||||
$is_allow = config('administrator.permission');
|
||||
if (($is_allow && is_callable($is_allow) && $is_allow() === true) || $is_allow === true) {
|
||||
return redirect(url(config('administrator.uri')), 302);
|
||||
}
|
||||
return view('pages.permission_denied');
|
||||
|
|
Loading…
Reference in New Issue
Block a user