Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7413 Widoki

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 ?  


Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
kwi 20
9696
1
lis 19
4474
3
paź 19
8415
2
lut 18
14886
0
sty 18
4655