Sha256: e88c555487d9d21f52c10f3b4a8b200935de59d7bd6aa370a0a906d9ed375718

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 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 :upload, :to => :update
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fcrepo_admin-0.4.0 lib/fcrepo_admin/ability.rb