CC-4656: Library -> No error message when a dj tries to delete smart blocks and webstreams they do not own

-fixed
This commit is contained in:
denise 2012-10-31 17:19:27 -04:00
parent 0999b28b2d
commit 5b14c4fe88
2 changed files with 11 additions and 5 deletions

View file

@ -92,7 +92,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
if (count($leftOver) == 0) {
CcWebstreamQuery::create()->findPKs($p_ids)->delete();
} else {
throw new Exception("Invalid user permissions");
throw new WebstreamNoPermissionException;
}
}
@ -370,3 +370,6 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
return $webstream->getDbId();
}
}
class WebstreamNoPermissionException extends Exception {}