تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6980 أدوات العرض

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
أبريل 20
9086
1
نوفمبر 19
3986
3
أكتوبر 19
7844
2
فبراير 18
14016
0
يناير 18
4291