Verified Commit f850207e authored by Alexis Ragot's avatar Alexis Ragot
Browse files

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

parent b3313eb2
......@@ -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'])) {
......
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