CC-4961: Show linking
Refactored services Removed ShowDaysService and ShowInstanceService Combined all show actions into one ShowService
This commit is contained in:
parent
bae9f1202a
commit
a7601d290f
10 changed files with 1308 additions and 1206 deletions
|
@ -19,4 +19,12 @@ class CcSubjs extends BaseCcSubjs {
|
|||
{
|
||||
return $this->type === UTYPE_ADMIN || $this->type === UTYPE_PROGRAM_MANAGER;
|
||||
}
|
||||
|
||||
public function isHostOfShow($showId)
|
||||
{
|
||||
return CcShowHostsQuery::create()
|
||||
->filterByDbShow($showId)
|
||||
->filterByDbHost($this->getDbId())
|
||||
->count() > 0;
|
||||
}
|
||||
} // CcSubjs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue