選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
|
- # frozen_string_literal: true
-
- class AccountModerationNotePolicy < ApplicationPolicy
- def create?
- staff?
- end
-
- def destroy?
- admin? || owner?
- end
-
- private
-
- def owner?
- record.account_id == current_account&.id
- end
- end
|