feat(core) : add usePermissions composable and rbac roles admin front
This commit is contained in:
@@ -25,7 +25,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
#[ORM\Index(name: 'idx_role_is_system', columns: ['is_system'])]
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
new GetCollection(security: "is_granted('core.roles.view')"),
|
||||
new GetCollection(security: "is_granted('core.roles.view')", paginationEnabled: false),
|
||||
new Get(security: "is_granted('core.roles.view')"),
|
||||
new Post(security: "is_granted('core.roles.manage')", processor: RoleProcessor::class),
|
||||
new Patch(security: "is_granted('core.roles.manage')", processor: RoleProcessor::class),
|
||||
|
||||
Reference in New Issue
Block a user