Frachtwerk / essencium-frontend

Next.js based starter monorepo consisting of a component library, types, docs and a boilerplate application.
https://staging.essencium.dev
GNU Lesser General Public License v3.0
17 stars 1 forks source link

Add optional rights for NavLinks #597

Closed CathrinTruchan closed 1 month ago

CathrinTruchan commented 2 months ago

Description The NavLinks in the NavBar component can be conditionally rendered based on user rights. However right now the user needs to have all of the rights listed in the rights array. In the current implementation there is no way to use different combination of rights (e.g. either/or and mandatory rights).

Scope Adjust the hasRequiredRights function in the NavLink component.