-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
The Function
\Pimcore\Tool\Console::checkExecutingUser();
allows to pass an array with allowes users to execute.
Within ProcessManager in the Trait these function is been called at Line 114 within "initProcessManager"
In the Sample Command there is an additional call to the same method.
There i've the option to pass more differente users like:
\Pimcore\Tool\Console::checkExecutingUser(['www-data', 'deployer', 'vagrant']);
Would make sense to give the option to initProcessManager, maybe in this manner:
$allowedUsers = isset($options['allowedUsers']) && is_array($options['allowedUsers']) ? $options['allowedUsers'] : [];
unset($options['allowedUsers']);
........
\Pimcore\Tool\Console::checkExecutingUser($allowedUsers);Metadata
Metadata
Assignees
Labels
No labels