Answer the question
In order to leave comments, you need to log in
Dynamic serialization of attributes by access rights (ACL)?
When does THIS apply?
Sometimes, you will find the need to apply an ACE only to a specific field of the object. Suppose you want the ID only to be viewable by an administrator, but not by your customer service. To solve this common problem, two more sub-scopes have been added:
Class-Field-Scope: These entries apply to all objects with the same class, but only to a specific field of the objects.
Object-Field-Scope: These entries apply to a specific object, and only to a specific field of that object.
specific object, and only to a specific field of that object
Answer the question
In order to leave comments, you need to log in
It is usually very expensive to store ACLs in a cache on the server, it can be stored in an encrypted session on the client side, but this inflates traffic. It is better to query the databases for each server data request - always up-to-date ACL and instant application of rights. If you design the database in a certain way, then it will not be resource-intensive for the server at all.
This is usually necessary for the fact that there is different data and some data should be shown only to certain roles and others should not have access to them.
For example, "wholesale price" is significantly different from "retail", and "purchase" is even lower than wholesale.
So users of the lower link - from stores - should not find out the purchase and wholesale prices.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question