CC-4094: Dashboard -> Source Info panel: DJ assigned to current show can turn off the Master Resouce but cannot disconnect it.

- fixed
This commit is contained in:
James 2012-09-17 15:41:27 -04:00
parent b6f447a827
commit 54b6b12ec0
2 changed files with 3 additions and 7 deletions

View file

@ -35,7 +35,6 @@ class Application_Model_User
public function isHostOfShow($showId)
{
$userId = $this->_userInstance->getDbId();
return CcShowHostsQuery::create()
->filterByDbShow($showId)
->filterByDbHost($userId)->count() > 0;
@ -63,10 +62,9 @@ class Application_Model_User
if ($type === UTYPE_ADMIN ||
$type === UTYPE_PROGRAM_MANAGER ||
CcShowHostsQuery::create()->filterByDbShow($p_showId)->filterByDbHost($this->getId())->count() > 0) {
self::isHostOfShow($p_showId)) {
$result = true;
}
return $result;
}
@ -210,7 +208,7 @@ class Application_Model_User
$this->_userInstance->delete();
}
}
public function getOwnedFiles()
public function getOwnedFiles()
{
$user = $this->_userInstance;
// do we need a find call at the end here?