Fix user entity not bein in registry
This commit is contained in:
parent
9574b63470
commit
4eadb1aef3
2 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue