Fix user entity not bein in registry

This commit is contained in:
Gabriel Baker 2013-06-04 19:49:26 +01:00
commit 4eadb1aef3
2 changed files with 7 additions and 3 deletions

View file

@ -89,7 +89,7 @@ class BuildController extends \PHPCI\Controller
if (!Registry::getInstance()->get('user')->getIsAdmin()) {
throw new \Exception('You do not have permission to do that.');
}
$build = $this->_buildStore->getById($buildId);
$this->_buildStore->delete($build);