Check study access rights and study exists

 Fix #445
you can also access through `self._table`