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

refactor: refactor and extend hasRequiredRights function #598

Closed CathrinTruchan closed 1 month ago

CathrinTruchan commented 2 months ago

DESCRIPTION

In this PR the function hasRequiredRights has been refactored. It is used to check if the user has access to certain pages of the application or certain actions, e.g. edit or delete methods.

The three different checks have been unified to one method. Also now there is a possibility to check either/or rights.

TO-DO

CLOSES

closes #597

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
app ✅ Ready (Inspect) Visit Preview Jun 28, 2024 9:41am
docs ✅ Ready (Inspect) Visit Preview Jun 28, 2024 9:41am