mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
https://linear.app/unleash/issue/2-1165/improve-adminalert-usage-to-be-more-generic-accept-non-admin Upgrades our `AdminAlert` to a new `PermissionGuard`. **Question**: We don't **need** to, but **should** we be specific about the `ADMIN` permission every time? Technically `PermissionGuard` could have `permissions` as optional and assume `[]` by default, which will add `ADMIN` anyways. However, I feel like we may gain some readability if we're specific about it. WDYT? Single permission:  Multiple permissions:  |
||
---|---|---|
.. | ||
addons | ||
admin | ||
application | ||
archive | ||
changeRequest | ||
common | ||
context | ||
demo | ||
environments | ||
events | ||
feature | ||
feedback | ||
layout | ||
loginHistory | ||
maintenance | ||
menu | ||
playground/Playground | ||
project | ||
providers | ||
segments | ||
splash | ||
strategies | ||
tags | ||
user | ||
App.tsx | ||
InitialRedirect.tsx |