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:
@@ -123,7 +123,9 @@ const routes: Routes = [
|
||||
},
|
||||
{
|
||||
path: "billing",
|
||||
canActivate: [providerPermissionsGuard()],
|
||||
canActivate: [
|
||||
providerPermissionsGuard((provider: Provider) => provider.isProviderAdmin),
|
||||
],
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
|
||||
Reference in New Issue
Block a user