/**
  * @param AbstractAjxpUser $user
  * @return bool
  */
 protected function updateCurrentUserRights($user)
 {
     if ($this->repositoryId == null) {
         return true;
     }
     if (!$user->canSwitchTo($this->repositoryId)) {
         throw new Sabre\DAV\Exception\NotAuthenticated();
     }
 }