Module: Ability::Shared::PowerUser
- Included in:
- Administrator, Manager
- Defined in:
- app/models/ability/shared/power_user.rb
Overview
Prepend to an ability class to include Power User privileges These are the privileges shared by administrators and managers
Instance Method Summary collapse
-
#grant_privileges ⇒ Object
rubocop:todo Metrics/MethodLength.
Instance Method Details
#grant_privileges ⇒ Object
rubocop:todo Metrics/MethodLength
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/ability/shared/power_user.rb', line 7 def grant_privileges # rubocop:todo Metrics/AbcSize super Rails.logger.debug { 'Granting PowerUser privileges' } # Admin link will appear can :administer, Sequencescape can :convert_to_tube, Plate can :close, Receptacle can :manage, Receptacle can :cancel, Request can :copy, Request can :change_decision, Request can :create_additional, Request can :update, Sample can :release, Sample can :accession, Sample can %i[activate deactivate], Study can %i[create update], Study can :create, SampleManifest can :create, Supplier can :create, Comment end |