From cd42d73ce7b3c14147560bcb7fb4032b4bb18f3d Mon Sep 17 00:00:00 2001 From: uyab Date: Tue, 22 Dec 2015 18:40:42 +0700 Subject: [PATCH] skip acl checking if running as console command --- src/ServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 091475d..6d0f43e 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -48,9 +48,9 @@ public function boot(Gate $gate) $this->registerSeeds(); $this->registerConfigurations(); - //if (!$this->app->runningInConsole()) { + if (!$this->app->runningInConsole()) { $this->registerAcl($gate); - //} + } $this->registerCommands(); }