Class: TranslationPolicy
- Inherits:
-
ApplicationPolicy
- Object
- ApplicationPolicy
- TranslationPolicy
- Defined in:
- app/policies/translation_policy.rb
Instance Method Summary collapse
Instance Method Details
#create? ⇒ Boolean
6 7 8 |
# File 'app/policies/translation_policy.rb', line 6 def create? user && user.admin? end |
#index? ⇒ Boolean
2 3 4 |
# File 'app/policies/translation_policy.rb', line 2 def index? user && user.admin? end |