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 create tag groups, layouts and sets

Instance Method Summary collapse

Instance Method Details

#grant_privilegesObject



6
7
8
9
10
11
12
13
14
15
# 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
  can :manage, TagSet
end