Skip to content

Legal API: add non-filing permission checks - Step 2 #29967

Closed

Description

@Rajandeep98

Previous title: "add permission checks (instead of KC role checks) to Other than Filing Components"

Three types of checks are possible:

  1. by filing (ticket Legal API: add permission checks (instead of KC role checks) to filings - Step 1 #27211)
  2. by filing content/JSON (ticket Legal API - prevent unauthorized actions (missing permission) #29528)
  3. by non-filing endpoint (THIS ticket)

This ticket was created because more information is needed on where, in the API, we can block the rest of permissions, below. (Some of these checks will be moved to #29528.)

  • FIRM_NO_MIN_START_DATE
    - [ ] "ADD_ENTITY_NO_AUTHENTICATION" - no filing impact
  • "AML_OVERRIDES"
    - [ ] "BLANK_CERTIFY_STATE" - no filing impact
    - [ ] "BLANK_COMPLETING_PARTY" - no filing impact
  • "COURT_ORDER_POA"
  • "DIGITAL_CREDENTIALS" - no filing impact, but DBC permission in Legal API could be implemented
  • "EDITABLE_CERTIFY_NAME"
  • "EDITABLE_COMPLETING_PARTY"
    - [ ] "MANAGE_BUSINESS” - no filing impact
    - [ ] "MANAGE_NR" - no filing impact
    - [ ] "MANAGE_OTHER_ORGANIZATION" - no filing impact
    - [ ] "MANAGE_SOCIETY" - no filing impact
    - [ ] "NO_COMPLETING_PARTY_MESSAGE_BOX" - no filing impact
    - [ ] "NO_CONTACT_INFO" - no filing impact
  • "OVERRIDE_NIGS"
    - [ ] "RESUME_DRAFT" - no filing impact
  • "SAVE_DRAFT" - does Legal API already check whether user can save this draft's filing type? or is that only for submitting the filing?
    - [ ] "SBC_BREADCRUMBS" - no filing impact
    - [ ] "STAFF_BREADCRUMBS" - no filing impact
    - [ ] "THIRD_PARTY_CERTIFY_STMT" - no filing impact
  • "STAFF_COMMENTS" - this is not a filing but the endpoint should be protected
  • "DETAIL_COMMENTS" - this is not a filing but the endpoint should be protected
  • "DOCUMENT_RECORDS" - what can we do about this in the API?
    - [ ] "SEARCH_BUSINESS_NR" - no filing impact
  • "FILE_AND_PAY" - already checked by Legal API when checking filing types?
  • "STAFF_PAYMENT”
    - [ ] "STAFF_DASHBOARD" - no filing impact

Activity

  1. added
    Entities Team
    on Aug 6, 2025
  2. self-assigned this
    on Aug 6, 2025
  3. Rajandeep98 commented on Aug 6, 2025

    @Rajandeep98
    CollaboratorAuthor

    "ADD_ENTITY_NO_AUTHENTICATION" : Authorized to affiliate business or NR without authentication. - may be user/auto affiliations
    "AML_OVERRIDES" : what does this includes
    "BLANK_CERTIFY_STATE" <> in what cases??
    "BLANK_COMPLETING_PARTY" <>
    "COURT_ORDER_POA" <> /courtorder filing should be able to add , correct?

    "DIGITAL_CREDENTIALS" DigitalCredentialsRulesService:
    """Digital Credentials Rules service."""
    Where are they used?

    "EDITABLE_CERTIFY_NAME"
    "EDITABLE_COMPLETING_PARTY" : user_is_completing_party ??
    "FIRM_ADD_BUSINESS”: <> ??
    "FIRM_EDITABLE_DBA" <> ??
    "FIRM_EDITABLE_EMAIL_ADDRESS" <> ??
    "FIRM_NO_HELP_SECTION" ??
    "FIRM_NO_MIN_START_DATE" ?? Currently: def validate_start_date(filing: Dict) -> list:
    """Validate start date."""
    msg.append({'error': 'Start date must be less than or equal to 10 years.',
    'path': start_date_path})
    if start_date > greater:
    msg.append({'error': 'Start Date must be less than or equal to 90 days in the future.',
    'path': start_date_path})

    "FIRM_REPLACE_PERSON" ??
    "MANAGE_BUSINESS”: same person and staff
    "MANAGE_NR" : same person and staff
    "MANAGE_OTHER_ORGANIZATION" ?? View can only staff
    "MANAGE_SOCIETY" ?? Who is allowed right now?
    "NO_COMPLETING_PARTY_MESSAGE_BOX" ???
    "NO_CONTACT_INFO" ?? Of who?
    "OVERRIDE_NIGS" <> ???

    "RESUME_DRAFT" <> put
    "SAVE_DRAFT" <> post draft
    "SBC_BREADCRUMBS" <> purely UI I guess

    "STAFF_BREADCRUMBS" <> purely UI I guess
    "THIRD_PARTY_CERTIFY_STMT" <> ?? get certifyMessage certifyText

    —— clear resources in lear

    "STAFF_COMMENTS"
    "DETAIL_COMMENTS" :'commentsLink': f'{base_url}/{business_identifier}/filings/{filing_storage.id}/comments',
    "DOCUMENT_RECORDS" : 'documentsLink': f'{base_url}/{business_identifier}/filings/{filing_storage.id}/documents' if

    "SEARCH_BUSINESS_NR" : https://namex-api-dev-475224072965.northamerica-northeast1.run.app/api/v1/requests/search?query=NR+9253294&start=0&rows=20
    "FILE_AND_PAY" <> All , between state to check weather to go to pay….
    <SbcFeeSummary
    :filingData="filingData"
    :payURL="getPayApiUrl"
    @total-fee="totalFee=$event"
    />

    Filing.get_fee_code

    Auth Component
    "STAFF_PAYMENT”: nothing in lear ( but filing with sending no fee code): check with postman
    "STAFF_DASHBOARD" : ${config.authWebUrl}/staff/dashboard/active`

  4. changed the title [-]Legal API: add permission checks (instead of KC role checks) to Other than Filing Components[/-] [+]Legal API: add non-filing permission checks[/+] on Aug 6, 2025
  5. changed the title [-]Legal API: add non-filing permission checks[/-] [+]Legal API: add non-filing permission checks - Step 2[/+] on Aug 20, 2025
  6. Rajandeep98 commented on Aug 29, 2025

    @Rajandeep98
    CollaboratorAuthor
    • "STAFF_COMMENTS"
    • "DETAIL_COMMENTS"
    • "AML_OVERRIDES"
    • "COURT_ORDER_POA"
    • "EDITABLE_CERTIFY_NAME"
    • "EDITABLE_COMPLETING_PARTY"
    • "OVERRIDE_NIGS"
  7. Rajandeep98 commented on Sep 4, 2025

    @Rajandeep98
    CollaboratorAuthor

    enable-permissions-for-action <> flag

  8. Rajandeep98 commented on Sep 5, 2025

    @Rajandeep98
    CollaboratorAuthor

    Pasted Graphic.png

    Pasted Graphic 1.png

    Pasted Graphic 2.png

    Pasted Graphic 3.png

    Pasted Graphic 4.png

    Pasted Graphic 5.png

    Pasted Graphic 7.png

    Pasted Graphic 6.png

    Pasted Graphic 8.png

    Pasted Graphic.png

    Pasted Graphic 1.png

    Pasted Graphic 2.png

    Pasted Graphic 3.png

    Pasted Graphic 4.png

    certifiedby etpate.png

    Pasted Graphic 6.png

  9. Rajandeep98 commented on Sep 11, 2025

    @Rajandeep98
    CollaboratorAuthor

    breaking down this pr to smaller prs for each type

  10. Rajandeep98 commented on Sep 12, 2025

    @Rajandeep98
    CollaboratorAuthor

    added flag - 'enabled-deeper-permission-action'

  11. riyazuddinsyed commented on Sep 23, 2025

    @riyazuddinsyed
    Contributor

    Verified in dev..Woorking as expected.

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

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions