From af2dcb08c9c3063b38edd2908711c1641dac556e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Sun, 5 May 2024 14:49:43 +0200 Subject: [PATCH] wip --- src/Root.php | 2 +- stubs/RootServiceProvider.stub | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Root.php b/src/Root.php index 948e1f25..a9d05425 100644 --- a/src/Root.php +++ b/src/Root.php @@ -23,7 +23,7 @@ class Root * * @var string */ - public const VERSION = '2.2.15'; + public const VERSION = '2.2.16'; /** * The registered booting callbacks. diff --git a/stubs/RootServiceProvider.stub b/stubs/RootServiceProvider.stub index a59f7d4c..61d394fa 100644 --- a/stubs/RootServiceProvider.stub +++ b/stubs/RootServiceProvider.stub @@ -31,6 +31,10 @@ class RootServiceProvider extends ServiceProvider */ public function boot(): void { + Gate::define('viewRoot', static function (User $user): bool { + return false; + }); + Root::instance()->resources->register([ new UserResource(), ]);