Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2426 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
1766
2
thg 3 15
4475
1
thg 3 15
7926
1
thg 7 24
4584
1
thg 4 22
4301