MODULE = 'bx_workspaces'; parent::__construct($aOptions, $oTemplate); $this->_oModule = BxDolModule::getInstance($this->MODULE); } public function isAllowedReport($isPerformAction = false) { $oProfile = BxDolProfile::getInstanceByContentAndType($this->getId(), $this->_oModule->getName()); if($oProfile && $oProfile->id() == bx_get_logged_profile_id()) return false; return parent::isAllowedReport($isPerformAction); } } /** @} */