type === UTYPE_SUPERADMIN || $this->type === UTYPE_ADMIN || $this->type === UTYPE_PROGRAM_MANAGER; } public function isSuperAdmin() { return $this->type === UTYPE_SUPERADMIN; } public function isHostOfShow($showId) { return CcShowHostsQuery::create() ->filterByDbShow($showId) ->filterByDbHost($this->getDbId()) ->count() > 0; } public function isHostOfShowInstance($instanceId) { $showInstance = CcShowInstancesQuery::create() ->findPk($instanceId); return CcShowHostsQuery::create() ->filterByDbShow($showInstance->getDbShowId()) ->filterByDbHost($this->getDbId()) ->count() > 0; } } // CcSubjs