fixed permission

This commit is contained in:
Sebastian Frank 2019-03-05 16:45:04 +01:00
parent c8467208ac
commit 9d1b2eaaf7
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
3 changed files with 13 additions and 13 deletions

View File

@ -16,7 +16,7 @@ $app->on('admin.init', function () use ($app) {
// Bind admin routes.
$this->bindClass('Drone\\Controller\\Admin', 'drone/deploys');
if ($app->module('cockpit')->hasaccess('drone', 'deploys.view')) {
if ($app->module('cockpit')->hasaccess('drone', 'manage.view')) {
// Add to modules menu.
$this('admin')->addMenuItem('modules', [
'label' => 'Drone Deploys',