mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-03 16:21:50 +02:00
Added minimum data set support for panel
This commit is contained in:
parent
d91307da55
commit
15673ff56f
12 changed files with 74 additions and 42 deletions
|
@ -126,6 +126,11 @@ $container->set('view', function ($container) {
|
|||
} else {
|
||||
$view->getEnvironment()->addGlobal('screen_mode', 'light');
|
||||
}
|
||||
if (envi('MINIMUM_DATA') === 'true') {
|
||||
$view->getEnvironment()->addGlobal('minimum_data', 'true');
|
||||
} else {
|
||||
$view->getEnvironment()->addGlobal('minimum_data', 'false');
|
||||
}
|
||||
if (isset($_SESSION['auth_roles'])) {
|
||||
$view->getEnvironment()->addGlobal('roles', $_SESSION['auth_roles']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue