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

FEAT: New Roles > Department Admin and Facility Admin #715

Open
jtucholski opened this issue Jan 31, 2025 · 0 comments
Open

FEAT: New Roles > Department Admin and Facility Admin #715

jtucholski opened this issue Jan 31, 2025 · 0 comments
Labels
feature - addition New feature or request for a new feature

Comments

@jtucholski
Copy link
Contributor

jtucholski commented Jan 31, 2025

Description

Adjust permissions for Facility Admins and Department Admins to enforce proper facility-level restrictions. Facility Admins should only manage accounts within their assigned facility, while Department Admins retain the ability to oversee multiple facilities.

User Stories

1. Facility Admin Restrictions

  • As a Facility Admin, I want my access restricted to actions and data for my assigned facility, so I cannot manage other facilities.

2. Department Admin Permissions

  • As a Department Admin, I want to switch between facilities using the dropdown, so I can manage accounts and view data across multiple facilities.

Acceptance Criteria

  • Facility Admins:
    • Dropdown in the top-right corner is disabled (similar to how it performs for Residents) and shows the name of the assigned facility.
    • Actions (e.g., add or manage users) are restricted to their assigned facility.
    • Facility Admins can no longer access the Facilities page to create, edit, or delete Facilities.
  • Department Admins:
    • Dropdown remains active and allows for different facilities to be selected.
    • Permissions remain unchanged for managing users and data across all facilities.

Extra context

  • This ticket breaks up the existing Admin role into two new roles: Department Admin and Facility Admin and I don't believe there is a need for an "Admin" role beyond that.
  • Before starting on this look into any other related tickets that are open for Roles & Permissions to see if there's overlap.
  • We should factor into consideration whether we permit/block features by role ("Department Admin", "Facility Admin") or permission ("Switch Facility", "Create Resident", etc.).
  • When we create Users they are assigned a Facility. That means we need to determine where to assign Department-wide Admins
@jtucholski jtucholski added the feature - addition New feature or request for a new feature label Jan 31, 2025
@chrissantillan chrissantillan changed the title New Roles > Department Admin and Facility Admin FEAT: New Roles > Department Admin and Facility Admin Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature - addition New feature or request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant