Sha256: c9ae8ac2308e637cce0275b314de4a6f2660fe44d51bc1e9b7443df987b747f9
Contents?: true
Size: 578 Bytes
Versions: 36
Compression:
Stored size: 578 Bytes
Contents
module Hyrax module Ability module PermissionTemplateAbility def permission_template_abilities if admin? can :manage, [Hyrax::PermissionTemplate, Hyrax::PermissionTemplateAccess] else can [:create, :edit, :update, :destroy], Hyrax::PermissionTemplate do |template| test_edit(template.source_id) end can [:create, :edit, :update, :destroy], Hyrax::PermissionTemplateAccess do |access| test_edit(access.permission_template.source_id) end end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems