def authorize
      raise AuthorizationError, "Missing data" unless component && action

      AuthorizationStatusCollection.new(authorization_handlers, user, component, resource)
    end
def authorize
      raise AuthorizationError, "Missing data" unless component && action

      AuthorizationStatusCollection.new(authorization_handlers, user, component, resource)
    end
Initializes the ActionAuthorizer.

 user      - The user to authorize against.
 action    - The action to authenticate.
 component - The component to authenticate against.
 resource  - The resource to authenticate against. Can be nil.


 Authorize user to perform an action in the context of a component.

 Returns:
   :ok an empty hash                      - When there is no authorization handler related to the action.
   result of authorization handler check  - When there is an authorization handler related to the action. Check Decidim::Verifications::DefaultActionAuthorizer class docs.