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
7649 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
10031
1
lis 19
4666
3
paź 19
8683
2
lut 18
15207
0
sty 18
4774