protected function getNecessaryPermission($action)
    {
        $parsed = $this->parseAction($action);

        return ResourcePermissions::permissionFor($parsed['resource'], $parsed['action']);
    }
protected function getNecessaryPermission($action)
    {
        $parsed = $this->parseAction($action);

        return ResourcePermissions::permissionFor($parsed['resource'], $parsed['action']);
    }
protected function getNecessaryPermission ( $ action ) { $ parsed = $ this -> parseAction ( $ action ) ; return ResourcePermissions :: permissionFor ( $ parsed [ 'resource' ] , $ parsed [ 'action' ] ) ; }
Returns permission name like 'edit users', 'list users' etc based on resource and action

@param $action

@return bool|string Returns the permission name or false if no matching action was found
Returns permission name like edit users list users etc based on resource and action