Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6885 Zobrazení

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
Zrušit
Autor

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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
dub 20
9018
1
lis 19
3929
3
říj 19
7752
2
úno 18
13904
0
led 18
4250