Commit 1225885d authored by Alexis Ragot's avatar Alexis Ragot

Merge branch 'hotfix/7236-userCommandError' into 'master'

#7236 - fixed bug that allow access of writing features without credentials

See merge request !27
parents b3313eb2 f850207e
......@@ -97,6 +97,9 @@ class UserCommand
$this->returnType = null;
$this->parameters = null;
$this->tags = null;
$this->services = null;
$this->pattern = null;
$this->view = null;
parent::__construct($name, $class, $domain);
......@@ -130,7 +133,6 @@ class UserCommand
}
if (isset($this->tags['uses'])) {
$this->services = null;
foreach ($this->tags['uses'] as $uses) {
preg_match('#(?<path>[^\s]+)\s*(?<name>\w+)?#', $uses, $service);
if (isset($service['name'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment