跳至內容
選單
此問題已被標幟
1 回覆
6881 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
4月 20
9017
1
11月 19
3929
3
10月 19
7741
2
2月 18
13896
0
1月 18
4248