fixed permission
This commit is contained in:
parent
c8467208ac
commit
9d1b2eaaf7
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user