Sha256: 993123131bf470651449bfed8fe84011515edadec10ddb4b80b02cd824d422cb

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 Bytes

Contents

module FcrepoAdmin
  module Ability
    extend ActiveSupport::Concern
    
    included do
      self.ability_logic += [:fcrepo_admin_aliases]
    end

    def fcrepo_admin_aliases
      alias_action :download, :to => :read
      alias_action :audit_trail, :to => :read
      alias_action :permissions, :to => :read
      alias_action :content, :to => :read
      alias_action :history, :to => :read
      alias_action :upload, :to => :update
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fcrepo_admin-0.5.5 lib/fcrepo_admin/ability.rb
fcrepo_admin-0.5.5.pre lib/fcrepo_admin/ability.rb
fcrepo_admin-0.5.4 lib/fcrepo_admin/ability.rb
fcrepo_admin-0.5.3 lib/fcrepo_admin/ability.rb
fcrepo_admin-0.5.2 lib/fcrepo_admin/ability.rb
fcrepo_admin-0.5.1 lib/fcrepo_admin/ability.rb
fcrepo_admin-0.5.0 lib/fcrepo_admin/ability.rb
fcrepo_admin-0.4.1 lib/fcrepo_admin/ability.rb