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
7053 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
9173
1
lis 19
4077
3
paź 19
7912
2
lut 18
14165
0
sty 18
4388