Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6884 Weergaven

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
Annuleer
Auteur

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

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
apr. 20
9018
1
nov. 19
3929
3
okt. 19
7752
2
feb. 18
13904
0
jan. 18
4250