Adding user accounts.

This commit is contained in:
Dan Cryer 2013-05-10 16:25:51 +01:00
commit 188162f0a2
22 changed files with 800 additions and 16 deletions

View file

@ -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);