ObjectsController: add sample permission check

This commit is contained in:
Thomas Gelf 2015-12-02 03:35:01 +01:00
parent 107b872b63
commit 570f8d9440

View File

@ -62,6 +62,7 @@ abstract class ObjectsController extends ActionController
{
$type = $this->getType();
$ltype = strtolower($type);
$this->assertPermission('director/' . $type . 's/read');
$dummy = $this->dummyObject();
if (! in_array($type, $this->globalTypes)) {