diff --git a/.env.example b/.env.example index e1c6a5e67..d45ce6f04 100644 --- a/.env.example +++ b/.env.example @@ -35,6 +35,7 @@ SRC_PATH=app ROOT_NAMESPACE=App\ USER_NAMESPACE=App\Containers\AppSection\User\Models\ +ADMIN_ROLE=admin DB_CONNECTION=mysql QUEUE_CONNECTION=sync diff --git a/app/Ship/Configs/apiato.php b/app/Ship/Configs/apiato.php index 32eb92d5e..38bd4849d 100644 --- a/app/Ship/Configs/apiato.php +++ b/app/Ship/Configs/apiato.php @@ -101,7 +101,7 @@ | */ 'allow-roles-to-access-all-routes' => [ - // config('appSection-authorization.admin_role'), + env('ADMIN_ROLE', 'admin'), ], /*