fixed permission

This commit is contained in:
Sebastian Frank committed 2019-03-05 16:45:04 +01:00
1 parent c8467208ac
commit 9d1b2eaaf7
3 files changed
+13 -13

No files matched your search

+1 -1
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',