Skip to content

Commit

Permalink
Fix required for correct method usage
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleMinotto committed Mar 31, 2016
1 parent 8a38cff commit c4f3a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/FeatureSecurity.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function isGranted(Feature $feature)
}
}

if ($feature->getParentRole()) {
if ('' !== trim($feature->getParentRole())) {
if (!$this->context->isGranted($feature->getParentRole())) {
return false;
}
Expand Down

0 comments on commit c4f3a5e

Please sign in to comment.