-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
From the documentation:
You can also restrict which items users can see in the index and detail pages thanks to the setEntityPermission() method.
I want to restrict access to the index and detail pages to employees who share the same profile property as the current user:
public function configureCrud(Crud $crud): Crud
{
return $crud
->setEntityPermission(
new Expression("subject.profile === user.profile")
)
;
}And it doesn't work. Expression seems to work fine for edit, delete and detail actions instead.

pfpro
Metadata
Metadata
Assignees
Labels
No labels