app/models/enju_biblio/ability.rb in enju_biblio-0.1.0.pre37 vs app/models/enju_biblio/ability.rb in enju_biblio-0.1.0.pre38

- old
+ new

@@ -7,10 +7,14 @@ when 'Administrator' can [:read, :create, :update], CarrierType can [:destroy, :delete], CarrierType do |carrier_type| true unless carrier_type.manifestations.exists? end if LibraryGroup.site_config.network_access_allowed?(ip_address) + can [:read, :create, :update], IdentifierType + can [:destroy, :delete], IdentifierType do |identifier_type| + true unless identifier_type.identifiers.exists? + end if LibraryGroup.site_config.network_access_allowed?(ip_address) can [:read, :create, :update], Item can [:destroy, :delete], Item do |item| item.removable? end can [:read, :create, :update], Manifestation @@ -20,10 +24,11 @@ can :manage, [ Create, CreateType, Donate, Exemplify, + Identifier, ImportRequest, ManifestationRelationship, ManifestationRelationshipType, Own, Patron, @@ -56,10 +61,11 @@ ContentType, Country, Extent, Frequency, FormOfWork, + IdentifierType, Language, License, MediumOfPerformance, PatronImportResult, PatronType, @@ -83,10 +89,11 @@ end can :manage, [ Create, Donate, Exemplify, + Identifier, ImportRequest, ManifestationRelationship, Own, PatronImportFile, PatronRelationship, @@ -101,10 +108,11 @@ ContentType, Country, Extent, Frequency, FormOfWork, + IdentifierType, Language, License, ManifestationRelationshipType, PatronImportResult, PatronRelationshipType, @@ -149,10 +157,12 @@ Create, Exemplify, Extent, Frequency, FormOfWork, + Identifier, + IdentifierType, Language, License, ManifestationRelationship, ManifestationRelationshipType, MediumOfPerformance, @@ -179,9 +189,11 @@ Create, Exemplify, Extent, Frequency, FormOfWork, + Identifier, + IdentifierType, Item, Language, License, ManifestationRelationship, ManifestationRelationshipType,