Skip to Content
Menu
This question has been flagged
1 Atsakyti
6883 Rodiniai

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 ?  


Portretas
Atmesti
Autorius

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

Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
bal. 20
9017
1
lapkr. 19
3929
3
spal. 19
7743
2
vas. 18
13899
0
saus. 18
4248