Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config/prequel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
*/

'enabled' => env('PREQUEL_ENABLED', true),

/*
|--------------------------------------------------------------------------
| Prequel Production Master Switch : boolean
|--------------------------------------------------------------------------
|
| Manually enable Prequel in production. This setting should not be enabled!
|
*/

'production_enabled' => env('PREQUEL_PRODUCTION_ENABLED', false),


/*
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/Authorised.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function configurationCheck()
{
return (object)[
"enabled" =>
config("prequel.enabled") && config("app.env") !== "production",
config("prequel.enabled") && (config("app.env") !== "production" || config("prequel.production_enabled")),
"detailed" => "Prequel has been disabled.",
];
}
Expand Down