Add Gate for viewing telescope in production
This commit is contained in:
parent
da7fd88b5a
commit
b38d00ddfc
|
@ -63,9 +63,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
|
||||||
protected function gate()
|
protected function gate()
|
||||||
{
|
{
|
||||||
Gate::define('viewTelescope', function ($user) {
|
Gate::define('viewTelescope', function ($user) {
|
||||||
return in_array($user->email, [
|
return $user->mglnr == 90166;
|
||||||
//
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue