Commit be69087d authored by Alexis Ragot's avatar Alexis Ragot
Browse files

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

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

See merge request !27

(cherry picked from commit 1225885d)

f850207e #7236 - fixed bug that allow access of writing features without credentials
parent 6ea7c379
...@@ -97,6 +97,9 @@ class UserCommand ...@@ -97,6 +97,9 @@ class UserCommand
$this->returnType = null; $this->returnType = null;
$this->parameters = null; $this->parameters = null;
$this->tags = null; $this->tags = null;
$this->services = null;
$this->pattern = null;
$this->view = null;
parent::__construct($name, $class, $domain); parent::__construct($name, $class, $domain);
...@@ -130,7 +133,6 @@ class UserCommand ...@@ -130,7 +133,6 @@ class UserCommand
} }
if (isset($this->tags['uses'])) { if (isset($this->tags['uses'])) {
$this->services = null;
foreach ($this->tags['uses'] as $uses) { foreach ($this->tags['uses'] as $uses) {
preg_match('#(?<path>[^\s]+)\s*(?<name>\w+)?#', $uses, $service); preg_match('#(?<path>[^\s]+)\s*(?<name>\w+)?#', $uses, $service);
if (isset($service['name'])) { if (isset($service['name'])) {
......
Supports Markdown
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