|
|
@@ -131,7 +131,7 @@ class AccessibilityController extends Controller { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @NoAdminRequired |
|
|
|
* @PublicPage |
|
|
|
* @NoCSRFRequired |
|
|
|
* @NoSameSiteCookieRequired |
|
|
|
* |
|
|
@@ -140,7 +140,11 @@ class AccessibilityController extends Controller { |
|
|
|
public function getCss(): DataDisplayResponse { |
|
|
|
$css = ''; |
|
|
|
$imports = ''; |
|
|
|
$userValues = $this->getUserValues(); |
|
|
|
if ($this->userSession->isLoggedIn()) { |
|
|
|
$userValues = $this->getUserValues(); |
|
|
|
} else { |
|
|
|
$userValues = ['dark']; |
|
|
|
} |
|
|
|
|
|
|
|
foreach ($userValues as $key => $scssFile) { |
|
|
|
if ($scssFile !== false) { |
|
|
@@ -199,7 +203,9 @@ class AccessibilityController extends Controller { |
|
|
|
$response->addHeader('Pragma', 'cache'); |
|
|
|
|
|
|
|
// store current cache hash |
|
|
|
$this->config->setUserValue($this->userSession->getUser()->getUID(), $this->appName, 'icons-css', md5($css)); |
|
|
|
if ($this->userSession->isLoggedIn()) { |
|
|
|
$this->config->setUserValue($this->userSession->getUser()->getUID(), $this->appName, 'icons-css', md5($css)); |
|
|
|
} |
|
|
|
|
|
|
|
return $response; |
|
|
|
} |