Skip to Content
Menú
This question has been flagged
1 Respondre
6648 Vistes

self.sudo().create() bypasses the access rights from the logged in user to admin. 

How to retain the logged in user rights once the record set is created ?  


Avatar
Descartar
Autor

@hilar AK : It worked! Thanks a lot...

Best Answer

In default using sudo() function By default, this returns a `SUPERUSER` recordset, where access control and record rules are bypassed. You can pass your user id in sudo() function and can retain as logged user access right.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
d’abr. 20
8657
1
de nov. 19
3679
3
d’oct. 19
7422
2
de febr. 18
13530
0
de gen. 18
4120