now when an organization path dose not exist it raise an error.
and when on the document edit page if organization.id dose not match document.organization.id it raise an error
before it did not raise errors for these cases
the issue is not completely solved tho.
when on the show page for a document
after a user changes the address organization slug to existing but incorrect slug.
an error is not thrown and the user can view the document.
expected an error to be thrown.
now when an organization path dose not exist it raise an error. and when on the document edit page if organization.id dose not match document.organization.id it raise an error before it did not raise errors for these cases
the issue is not completely solved tho.
when on the show page for a document after a user changes the address organization slug to existing but incorrect slug. an error is not thrown and the user can view the document. expected an error to be thrown.