Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lis 24
1212
2
mar 15
4024
1
mar 15
7493
1
lip 24
4159
1
kwi 22
3754