1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 20:24: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 GitHub
parent 7c6d98b50e
commit 3fb31fd040

View File

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