Filtering data based on group / user rights
Filtering data based on group / user rights
Sobsoft
Posts: 3Questions: 2Answers: 1
Good day.
How can I filter the table depending on the user's rights. For example, you want the administrator to see all the records, and if the normal user saw only certain (for example, only those that he created himself)?
This discussion has been closed.
Answers
I would do this outside of Datatables and have the DB return only those records the user is allowed to view. If you return all and try to hide them with Datatables they are still in the HTML of the web page and can be viewed by looking at the source.
Kevin