Line 4:
Line 4:
Each permission has a unique ID.
Each permission has a unique ID.
All permissions managed by Dolibarr are saved into [[Table llx_rights_def]] and has its own ID.
All permissions managed by Dolibarr are saved into [[Table llx_rights_def]] and has its own ID.
−
This id is used to make link between a user and the permission (links are saved into [[Table llx_user_rights]] or to make link between groupe and the permission (links are saved into the [[Table llx_usergroup_rights]]).
+
This id is used to make link between a user and the permission (links are saved into [[Table llx_user_rights]] or to make link between group and the permission (links are saved into the [[Table llx_usergroup_rights]]).
+
+
= Get permission and groups of a user =
= Get permission and groups of a user =