Skip to content

Commit 5e87096

Browse files
authored
Better to use roles for giving permissions as a group
1 parent 5faeded commit 5e87096

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/basic-usage/direct-permissions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ weight: 2
55

66
## Best Practice
77

8-
It's better to assign permissions to Roles, and then assign Roles to Users.
8+
INSTEAD OF DIRECT PERMISSIONS, it is better to assign permissions to Roles, and then assign Roles to Users.
99

1010
See the [Roles vs Permissions](../best-practices/roles-vs-permissions) section of the docs for a deeper explanation.
1111

12-
HOWEVER, If you have reason to directly assign individual permissions to specific users (instead of to roles assigned to those users), you can do that as described below:
12+
HOWEVER, If you have reason to directly assign individual permissions to specific users (instead of to roles which are assigned to those users), you can do that as well:
1313

1414
## Direct Permissions to Users
1515

@@ -46,7 +46,7 @@ Like all permissions assigned via roles, you can check if a user has a permissio
4646
$user->can('edit articles');
4747
```
4848

49-
NOTE: The following `hasPermissionTo`, `hasAnyPermission`, `hasAllPermissions` functions do not support Super-Admin functionality. Use `can`, `canAny`, `canAll` instead.
49+
> NOTE: The following `hasPermissionTo`, `hasAnyPermission`, `hasAllPermissions` functions do not support Super-Admin functionality. Use `can`, `canAny`, `canAll` instead.
5050
5151
You can check if a user has a permission:
5252

0 commit comments

Comments
 (0)