Class: Renalware::System::ViewMetadataPolicy
- Inherits:
-
BasePolicy
- Object
- ApplicationPolicy
- BasePolicy
- Renalware::System::ViewMetadataPolicy
- Defined in:
- app/policies/renalware/system/view_metadata_policy.rb
Instance Attribute Summary
Attributes inherited from ApplicationPolicy
Instance Method Summary collapse
Methods inherited from BasePolicy
#contact_added?, #create?, #debug?, #destroy?, #index?, #initialize, #show?, #sort?, #update?
Methods inherited from ApplicationPolicy
#create?, #destroy?, #index?, #initialize, #new?, #scope, #show?, #update?
Constructor Details
This class inherits a constructor from Renalware::BasePolicy
Instance Method Details
#edit? ⇒ Boolean
8 9 10 |
# File 'app/policies/renalware/system/view_metadata_policy.rb', line 8 def edit? user_is_super_admin? end |
#restore? ⇒ Boolean
12 13 14 |
# File 'app/policies/renalware/system/view_metadata_policy.rb', line 12 def restore? edit? end |