diff --git a/app/Jobs/SendSberToSystem.php b/app/Jobs/SendSberToSystem.php new file mode 100644 index 0000000..00feac3 --- /dev/null +++ b/app/Jobs/SendSberToSystem.php @@ -0,0 +1,30 @@ +icon('server') ->sole() - ->withoutConfirmation(), + ->withoutConfirmation() + ->canSee(function ($request) { + return auth()->user()->isSystemUser(); + }), SyncWithSystem::make() ->icon('cloud') ->sole() - ->withoutConfirmation(), + ->withoutConfirmation() + ->canSee(function ($request) { + return auth()->user()->isAdmin(); + }), ]; } }