Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
subaykan opened this issue Dec 16, 2024 · 0 comments
Open

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

subaykan opened this issue Dec 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@subaykan
Copy link

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

@subaykan subaykan added the enhancement New feature or request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant