Skip to content

Commit

Permalink
[phalcon#13870] - Changes based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jun 16, 2019
1 parent e70dac8 commit b69fed7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phalcon/Acl/Adapter/Memory.zep
Expand Up @@ -434,10 +434,10 @@ class Memory extends Adapter
return false;
}

let this->roles[] = roleObject;
let this->rolesNames[roleName] = true;
let this->roles[] = roleObject,
this->rolesNames[roleName] = true;

if (null !== accessInherits) {
if null !== accessInherits {
return this->addInherit(roleName, accessInherits);
}

Expand Down Expand Up @@ -513,7 +513,7 @@ class Memory extends Adapter
{
var innerRoleName;

if ("*" !== roleName) {
if "*" !== roleName {
this->allowOrDeny(roleName, componentName, access, Acl::DENY, func);
} else {
for innerRoleName, _ in this->rolesNames {
Expand Down

0 comments on commit b69fed7

Please sign in to comment.