Skip to content

Business API: create business endpoint should check permissions #31949

Closed

Description

@severinbeauvais

The "POST /businesses?draft=true" endpoint (eg, to create a draft continuation in filing) should check whether the current user has permission to create the subject filing (cont in).

To reproduce:

  1. login using Maximus account
  2. navigate to Namerequest UI
  3. open Dev Tools and go to Application tab
  4. open the session storage item for the current URL (names)
  5. add Key=LEGAL_TYPE and Value=BC
  6. add Key=REQUEST_ACTION_CD and Value=MVE
  7. reload the page

The above steps trick Namerequest UI into creating a draft continuation in filing for the current user. If the current user is a Maximus account, the POST should fail. Currently, it succeeds.

Activity

  1. added
    Entities Team
    bug
    on Jan 7, 2026
  2. Rajandeep98 commented on Jan 16, 2026

    @Rajandeep98
    Collaborator

    This Fix is checking the POST call to filings where respective roles can make the calls based on their assigned permissions.

  3. severinbeauvais commented on Jan 16, 2026

    @severinbeauvais
    CollaboratorAuthor

    Does the fix resolve the issue reported in this ticket? Looking at PR 3997, I don't see any change to prevent a Maximus user (or any account without permission) from creating a Continuation In draft.

    CC: @loneil @vysakh-menon-aot

  4. Rajandeep98 commented on Jan 16, 2026

    @Rajandeep98
    Collaborator

    User Can not Submit the Filing when do not have permission under authorized actions.

  5. Rajandeep98 commented on Jan 16, 2026

    @Rajandeep98
    Collaborator

    image.png

  6. severinbeauvais commented on Jan 16, 2026

    @severinbeauvais
    CollaboratorAuthor

    User Can not Submit the Filing when do not have permission under authorized actions.

    After chatting with Rajan, I realized that the code to prevent un-permitted users from creating a Continuation In draft was already in place but was disabled by a FF.

    I have tested again, with the FF on this time, and I was blocked as expected:

    image.png

    image.png

    image.png

  7. Rajandeep98 commented on Jan 16, 2026

    @Rajandeep98
    Collaborator

    Test -
    Try Adding Staff Filings from API User
    try Adding Filing not allowed for certain role.

  8. self-assigned this
    on Jan 19, 2026
  9. gunanagar commented on Jan 20, 2026

    @gunanagar
    Collaborator

    t

  10. gunanagar commented on Jan 20, 2026

    @gunanagar
    Collaborator

    t

  11. riyazuddinsyed commented on Jan 21, 2026

    @riyazuddinsyed
    Contributor

    This is not deployed to test, yet we need to perform the test in the dev environment.

  12. gunanagar commented on Jan 28, 2026

    @gunanagar
    Collaborator

    Tested Filling
    Staff - API User - COD
    Staff - API User - AR -Filling

  13. gunanagar commented on Jan 29, 2026

    @gunanagar
    Collaborator

    Create Business with with BCSC with Staff permission through API, got proper below error - PASS

    Screenshot 2026-01-28 at 8.54.27 PM.png

  14. gunanagar commented on Jan 29, 2026

    @gunanagar
    Collaborator

    Correction filling not allowed in API user

    Screenshot 2026-01-28 at 9.08.35 PM.png

  15. gunanagar commented on Jan 29, 2026

    @gunanagar
    Collaborator

    Checked in Maximus and its permission.

    Tested, looks good

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

Metadata

Metadata

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions