getGuardUser()->id; } public function getCulture() { return 'cs_CZ'; } public function checkActionCredential($credential_supervisor, $credential_user) { return $this->hasCredential($credential_supervisor) || $this->hasCredential($credential_user); } public function checkObjectCredential($credential_supervisor, $credential_user, $record_user_id) { if ($this->hasCredential($credential_supervisor)) return true; if (!$this->hasCredential($credential_user) || empty($record_user_id) || ($this->getId() != $record_user_id)) return false; return true; } public function getProfile() { return $this->getGuardUser()->Profile; } }