Answer the question
In order to leave comments, you need to log in
How to make ACL for users?
Good evening. I do separation of access rights of users. Separately, I share the rights for the admin panel, separately for the site. For the site, it is possible to create content types, separately for news, blogs, articles and more.
I created the following tables: group - here is the name of the user group, their rights to use the functionality of both the admin panel and the site, I do something like if 1 - then it is possible, if 0 - it is impossible. userADD int 1.
rules table - where id, groupID - user group id, typeID - content id, postVIEW - view records, postADD - add a record on the site, postEDIT - edit, postDELETE - delete a record.
How else can you conveniently organize user rights? And it turns out that in the rules table I have only rights to content types, and in group and username, and rights to the admin panel, and rights to other permissions on the site except for content types.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
I did permissions <-> groups <-> users, where "<->" is a many-to-many relationship. then I also attached a permissions <-> users connection for personal selection / giving permission to the user of some permissions on top of what is assigned to him through groups. where you need to check some kind of permission, there it is checked. permissions and groups can also be associated with some other objects in the system in order to designate the owner and check ownership when necessary, too
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question