From f1d0d7ae6a50cabd9da2bab7ef2a23157e4df84f Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Wed, 22 Apr 2020 22:47:03 -0400 Subject: [PATCH] Revert "Override Production Directory Permission Check" This reverts commit c37a13192f8b981c16934ea028a0928a4501c3c9. --- app/sprinkles/core/src/Util/CheckEnvironment.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/sprinkles/core/src/Util/CheckEnvironment.php b/app/sprinkles/core/src/Util/CheckEnvironment.php index a746c53cf..599c5fdaa 100644 --- a/app/sprinkles/core/src/Util/CheckEnvironment.php +++ b/app/sprinkles/core/src/Util/CheckEnvironment.php @@ -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, @@ -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'); - } }