Class: Biovision::Components::DeedsComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Biovision::Components::DeedsComponent
- Defined in:
- app/services/biovision/components/deeds_component.rb
Overview
Deed handler
Instance Method Summary collapse
Instance Method Details
#editable?(deed) ⇒ Boolean
8 9 10 11 12 |
# File 'app/services/biovision/components/deeds_component.rb', line 8 def editable?(deed) return false if deed.nil? || user.nil? deed.owned_by?(user) || allow? end |