mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-01 21:10:49 +08:00
Add permission guard and only allow provider admin to visit billing page for provider portal users (#18639)
This commit is contained in:
parent
7c6d98b50e
commit
3fb31fd040
@ -123,7 +123,9 @@ const routes: Routes = [
|
||||
},
|
||||
{
|
||||
path: "billing",
|
||||
canActivate: [providerPermissionsGuard()],
|
||||
canActivate: [
|
||||
providerPermissionsGuard((provider: Provider) => provider.isProviderAdmin),
|
||||
],
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user