Check study access rights and study exists

 Fix #445
that's what I'm seeing, it should be part of an instantiated object, not a classmethod. The fact that you have to pass the id is a hint that it should not be a classmethod...