app/models/spotlight/ability.rb in blacklight-spotlight-0.1.0 vs app/models/spotlight/ability.rb in blacklight-spotlight-0.2.0

- old
+ new

@@ -23,15 +23,19 @@ Spotlight::Resource, Spotlight::Page, Spotlight::Contact, Spotlight::CustomField], exhibit_id: user.roles.pluck(:exhibit_id) + can :manage, Spotlight::Lock, by: user + can :update, Spotlight::BlacklightConfiguration, exhibit_id: user.roles.pluck(:exhibit_id) can [:curate, :tag], Spotlight::Exhibit, id: user.roles.pluck(:exhibit_id) + can [:read, :curate, :tag], Spotlight::Exhibit, id: user.roles.pluck(:exhibit_id) # public - can :read, [Spotlight::Exhibit, Spotlight::HomePage] + can :read, Spotlight::HomePage + can :read, Spotlight::Exhibit, published: true can :read, Spotlight::Page, published: true can :read, Spotlight::Search, on_landing_page: true end end