mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 06:20:21 +00:00
Merge branch 'main' of https://bitbucket.org/studiotem/jandl-taskmanager-app
This commit is contained in:
commit
4e21f44065
2 files changed
+14
-2
No files matched your search
@@ -22,6 +22,18 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
|
||||
// Horizon::night();
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the Horizon authorization services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function authorization()
|
||||
{
|
||||
Horizon::auth(function () {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the Horizon gate.
|
||||
*
|
||||
@@ -30,7 +42,7 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
|
||||
protected function gate(): void
|
||||
{
|
||||
Gate::define('viewHorizon', function ($user) {
|
||||
dd($user);
|
||||
return true;
|
||||
return in_array($user->email, [
|
||||
//
|
||||
]);
|
||||
|
||||
@@ -28,7 +28,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'path' => env('HORIZON_PATH', 'horizon'),
|
||||
'path' => env('HORIZON_PATH', 'be/horizon'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user