コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2122 ビュー

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!

アバター
破棄
関連投稿 返信 ビュー 活動
2
11月 24
1320
2
3月 15
4077
1
3月 15
7558
1
7月 24
4261
1
4月 22
3859