Check study access rights and study exists

 Fix #445
why classmethod? it makes more sense if is a instance method