Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7251 Tampilan

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
Buang
Penulis

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

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Apr 20
9421
1
Nov 19
4245
3
Okt 19
8092
2
Feb 18
14539
0
Jan 18
4549