Skip to content

NotFound error when trying to view a private item #3

@sawyerh

Description

@sawyerh

@sskylar When I'm logged out and try to visit a private item's permalink page, it throws a Dropmark::Error::NotFound exception rather than Dropmark::Error::Forbidden (like it does when trying to visit a private collection).

I think this is a bug? This is how I'm writing it:

begin
  @item = Dropmark::Item.find(params[:id])
  @collection = Dropmark::Collection.find(params[:collection_id], include_items: true)
rescue Dropmark::Error::Forbidden => e
  redirect "/login?redirect=#{request.url}"
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions