Module: Ability::Shared::SampleManagementUser

Included in:
Administrator, Ability::SampleManagementGel, Ability::SampleManagementManager
Defined in:
app/models/ability/shared/sample_management_user.rb

Overview

Prepend to an ability class to include abilities related to sample management roles. Mainly control access to their pipelines

Instance Method Summary collapse

Instance Method Details

#grant_privilegesObject


6
7
8
9
10
11
12
13
# File 'app/models/ability/shared/sample_management_user.rb', line 6

def grant_privileges
  super
  Rails.logger.debug { 'Granting SampleManagementUser privileges' }

  # Index page of a few sample management tasks
  can :manage, GelsController
  can :read, SampleLogisticsController
end