I
I
Ivan Koryukov2015-12-01 19:20:20
symfony
Ivan Koryukov, 2015-12-01 19:20:20

How to set permissions in Symfony via ACL?

The Symfony documentation provides two ways to manage access rights - Voters and ACLs. Moreover, both of them, judging by the examples in the documentation, imply the issuance of rights to some objects - posts, comments, etc.
Is it possible to set up an ACL so that it looks like RBAC, in which the role has some rights regardless of any objects there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-12-02
@MadridianFox

is_granted('ROLE_FOO', object); // Применительно к объекту
is_granted('ROLE_FOO'); // Применительно вообще

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question