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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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