Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6918 Lượt xem

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 ?  


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 4 20
9031
1
thg 11 19
3937
3
thg 10 19
7776
2
thg 2 18
13942
0
thg 1 18
4254