Sha256: d56e4f18df6f9a28bf7974ceb7ef2c030fba6beb3a576ccbdb1b7830e4678cb2
Contents?: true
Size: 629 Bytes
Versions: 10
Compression:
Stored size: 629 Bytes
Contents
class Ability include Hydra::Ability include Hyrax::Ability self.ability_logic += [:everyone_can_create_curation_concerns] # Define any customized permissions here. def custom_permissions can :manage, Zizia::CsvImport if current_user.admin? can :manage, Zizia::CsvImportDetail if current_user.admin? # Limits deleting objects to a the admin user # # if current_user.admin? # can [:destroy], ActiveFedora::Base # end # Limits creating new objects to a specific group # # if user_groups.include? 'special_group' # can [:create], ActiveFedora::Base # end end end
Version data entries
10 entries across 10 versions & 1 rubygems