#41719Bad comparison for strings
Description
ResourceStorage:
if (in_array($action, array('read'))) {
There is no need for in_array() call on this line and below. A simple string comparison is faster and more readable in this case.
Function checkFileActionPermission().