From 8feae0169df1ad48ad8c8f415f67732e8f21426f Mon Sep 17 00:00:00 2001 From: tabuna Date: Tue, 19 Sep 2023 21:31:05 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20f68ea?= =?UTF-8?q?a15c279da776c790a979965da7da5f4e261=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/index.html | 4 ++-- index.html | 4 ++-- ru/docs/access/index.html | 10 ++++++---- ru/index.html | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/en/index.html b/en/index.html index 013a67780..3fc9bb043 100644 --- a/en/index.html +++ b/en/index.html @@ -557,12 +557,12 @@

Free and Open Sour class="rounded-circle m-1 border border-dark shadow" loading="lazy"> + - Free and Open Sour class="rounded-circle m-1 border border-dark shadow" loading="lazy"> + - Проверка в Blade<

После определения пользовательского условия вы можете использовать его в своих шаблонах:

@hasAccess('platform.index')
-    <!-- User has permission 'platform.index' -->
+    <!-- User has permission for the 'platform.index' action -->
 @elsehasAccess('platform.other')
-    <!-- User does not have permission 'platform.index', but has 'platform.other' -->
+    <!-- User doesn't have permission for 'platform.index',
+         but has permission for 'platform.other' -->
 @else
-    <!-- User does not have permission 'platform.index' and 'platform.other'  -->
+    <!-- User doesn't have permission for both 'platform.index'
+         and 'platform.other' -->
 @endhasAccess
 
 @unlesshasAccess('platform.index')
-    <!-- User does not have permission 'platform.index' -->
+    <!-- User doesn't have permission for 'platform.index' -->
 @endhasAccess
 

Вход от имени другого пользователя (User Impersonation)

diff --git a/ru/index.html b/ru/index.html index 9357107a4..638d7924e 100644 --- a/ru/index.html +++ b/ru/index.html @@ -557,12 +557,12 @@

Free and Open Sour class="rounded-circle m-1 border border-dark shadow" loading="lazy"> + -