Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2071 Visualizzazioni

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!

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
nov 24
1223
2
mar 15
4027
1
mar 15
7509
1
lug 24
4172
1
apr 22
3763