JonathanGarro / SIMS-Portal

IFRC Surge Information Management Support Portal
4 stars 4 forks source link

Maintain 1-1 user profile tier #56

Closed JonathanGarro closed 1 year ago

JonathanGarro commented 1 year ago

Right now, the front end manages the logic on what tier to display users at for each profile type. For example, if a user is listed as Geospatial Tier 1, then has someone "upgrade" them to Tier 2, the Tier 1 record remains, but the front end handles how to show which via a simple max(). However, this can cause issues when downgrading users.

Proposed fix: include a conditional in the route for assigning new profile tiers that deletes the existing record if user already has one assigned for that type.

JonathanGarro commented 1 year ago

Fixed as part of 1.4.1