Module: Ability::Shared::TagCreationUser

Included in:
Administrator
Defined in:
app/models/ability/shared/tag_creation_user.rb

Overview

Prepend to an ability class to include Tag Creation User privileges Govern the ability to created tag groups and layouts

Instance Method Summary collapse

Instance Method Details

#grant_privilegesObject


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

def grant_privileges
  super

  # More advanced user administration, such as the ability to add
  # and remove roles
  Rails.logger.debug { 'Granting TagCreationUser privileges' }
  can :manage, TagGroup
  can :manage, TagLayoutTemplate
end