Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6889 มุมมอง

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 ?  


อวตาร
ละทิ้ง
ผู้เขียน

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

คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
เม.ย. 20
9021
how to use field from same model แก้ไขแล้ว
1
พ.ย. 19
3929
3
ต.ค. 19
7753
2
ก.พ. 18
13907
0
ม.ค. 18
4251