Adding user accounts.
This commit is contained in:
parent
a07ba4020c
commit
188162f0a2
22 changed files with 800 additions and 16 deletions
|
|
@ -59,6 +59,11 @@ class BuildController extends b8\Controller
|
|||
|
||||
public function delete($buildId)
|
||||
{
|
||||
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