mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
PM-15091 Remove client side featureflag.AccessIntelligence and use DB feature flag (#12247)
* PM-15091 remove featureflag.AccessIntelligence * removed unwanted lines of code * fixed merge conflict
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
|
||||
import { canAccessFeature } from "@bitwarden/angular/platform/guard/feature-flag.guard";
|
||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||
import { organizationPermissionsGuard } from "@bitwarden/web-vault/app/admin-console/organizations/guards/org-permissions.guard";
|
||||
|
||||
import { RiskInsightsComponent } from "./risk-insights.component";
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: "risk-insights",
|
||||
canActivate: [canAccessFeature(FeatureFlag.AccessIntelligence)],
|
||||
canActivate: [organizationPermissionsGuard((org) => org.useRiskInsights)],
|
||||
component: RiskInsightsComponent,
|
||||
data: {
|
||||
titleId: "RiskInsights",
|
||||
|
||||
Reference in New Issue
Block a user