mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 02:04:38 +00:00
This commit is contained in:
@@ -49,6 +49,16 @@ class BaseController
|
||||
}
|
||||
$container->view->set('embedded', $embedded);
|
||||
|
||||
$constants = get_defined_constants();
|
||||
foreach ($constants as $constant => $value)
|
||||
{
|
||||
if (substr($constant, 0, 19) !== 'GROCY_FEATURE_FLAG_')
|
||||
{
|
||||
unset($constants[$constant]);
|
||||
}
|
||||
}
|
||||
$container->view->set('featureFlags', $constants);
|
||||
|
||||
try
|
||||
{
|
||||
$usersService = new UsersService();
|
||||
|
Reference in New Issue
Block a user