Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6871 Vistas

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...

Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
4
abr 20
9012
1
nov 19
3923
3
oct 19
7734
2
feb 18
13874
0
ene 18
4236