Check study access rights and study exists

 Fix #445
I think it is logically better plus I think the study object is already instantiated on that handler, so no more overhead...