Skip to content

Users in timeout can still start orgs through the API #972

Closed

Description

@arjankapteijn

Someone in timeout is meant to be unable to post anywhere: PreventPostingInTimeout says "nothing they post goes through until it is over, however they post it".

The web route POST /remotes/orgs (org.store) has that middleware, and UserTimeoutControllerTest checks that a user in timeout cannot start an org named "buy my course". Its signed API twin POST /api/v1/remotes/orgs (api-org.store, routes/api.php) does not, and neither CreateApiOrgRequest nor CreateOrg checks for a timeout.

So a user in timeout with an approved device can still create orgs. The org name (up to 60 characters) lands in every added member's inbox as the "created" event. Sending messages in the org is still blocked.

Expected: the API refuses with timed_out (403), as it does for the API commit and message routes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions