Skip to content

Commit

Permalink
Revert "Override Production Directory Permission Check"
Browse files Browse the repository at this point in the history
This reverts commit c37a131.
  • Loading branch information
lcharette committed Apr 23, 2020
1 parent 35ad866 commit f1d0d7a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions app/sprinkles/core/src/Util/CheckEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,8 @@ public function checkPermissions()
$this->locator->findResource('session://') => true,
];

if ($this->isProduction() && $this->skipSprinkleDirCheck()) {
if ($this->isProduction()) {
// Should be write-protected in production!
// Overriding this check based on the .env setting returned by skipSprinkleDirCheck().
$shouldBeWriteable = array_merge($shouldBeWriteable, [
\UserFrosting\SPRINKLES_DIR => false,
\UserFrosting\VENDOR_DIR => false,
Expand Down Expand Up @@ -385,14 +384,4 @@ public function isProduction()
{
return getenv('UF_MODE') == 'production';
}

/**
* Determine whether or not we are running in production mode.
*
* @return bool
*/
public function skipSprinkleDirCheck()
{
return getenv('UF_PROD_DIRCHECK');
}
}

0 comments on commit f1d0d7a

Please sign in to comment.