Filtering data based on group / user rights

Filtering data based on group / user rights

SobsoftSobsoft 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)?

Answers

  • kthorngrenkthorngren Posts: 21,310Questions: 26Answers: 4,948

    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

This discussion has been closed.