Skip to content

Should some region admins be able to reject visit reports? #244

Open
@subaykan

Description

@subaykan

Region admins are not allowed to reject visit reports, this is a rule from before implementation of 72 hour orgs where staff can be regionAdmin users but also work with direct visits, unlike non-72 hour routing org region admins.

Adding this issue for consideration and discussion of whether we should rethink this.

reference: https://oliver.zendesk.com/agent/tickets/20042

export default function canRejectVisitReports(user) {
  return !user.readOnlyWithinRegion && (user.superAdmin || user.organizationAdmin) && !user.regionAdmin
}

the user must be:
NOT a read only within the region AND (either an org admin or superadmin) AND NOT region admin

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions