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

How can i disable sales model editing with a dynamically computed condition?

I've inherited the model and added a can_edit flag. I'd like to only allow updating a Sale if the flag is true and the User belongs to group X.


Thanks!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
1217
2
thg 3 15
4025
1
thg 3 15
7504
1
thg 7 24
4166
1
thg 4 22
3761