Skip to content

Commit

Permalink
Fixed possibly incorrectly named ACL resource
Browse files Browse the repository at this point in the history
The bug kicked in if the name of the resource contained words "render",
"action", or "signal".

remp/crm#2841
  • Loading branch information
rootpd committed Apr 21, 2023
1 parent 72f3ebe commit 185341a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/GenerateAccessCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function processPresenterClass($presenterClass, OutputInterface $output)
}

// parse resource & load access level from annotation
$action = str_replace($methodPrefix, '', $methodName);
$action = substr($methodName, strlen($methodPrefix));
$action = lcfirst($action);

$reflectionClass = new ReflectionClass($presenterClass);
Expand Down

0 comments on commit 185341a

Please sign in to comment.