sanger/sequencescape

View on GitHub
app/models/ability/shared/sample_management_user.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

# Prepend to an ability class to include abilities related to sample
# management roles. Mainly control access to their pipelines
module Ability::Shared::SampleManagementUser
  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
end