Skip to content

Commit

Permalink
Update access.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Sep 19, 2023
1 parent 4be217f commit f68eaa1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/ru/docs/access.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,17 @@ public function boot()

```html
@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
```

Expand Down

0 comments on commit f68eaa1

Please sign in to comment.