1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 19:04:01 +00:00

Add permission guard and only allow provider admin to visit billing page for provider portal users (#18639)

This commit is contained in:
Jared
2026-02-05 10:31:21 -05:00
committed by jaasen-livefront
parent 70c321094e
commit 9462184e17

View File

@@ -123,7 +123,9 @@ const routes: Routes = [
},
{
path: "billing",
canActivate: [providerPermissionsGuard()],
canActivate: [
providerPermissionsGuard((provider: Provider) => provider.isProviderAdmin),
],
children: [
{
path: "",