Per registrar currency now fully available

This commit is contained in:
Pinga 2025-02-12 11:36:46 +02:00
parent 5711546f78
commit a9e84a855e
20 changed files with 681 additions and 243 deletions

View file

@ -208,7 +208,6 @@ $container->set('view', function ($container) {
// Make it accessible in templates
$view->getEnvironment()->addGlobal('currency', $currency);
$view->getEnvironment()->addGlobal('registry_currency', $_SESSION['registry_currency']);
// Check if the user is impersonated from the admin, otherwise default to false
$isAdminImpersonation = isset($_SESSION['impersonator']) ? $_SESSION['impersonator'] : false;