Skip to content

Commit

Permalink
fix(rbac): fix some broken imports after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
PatAKnight committed Oct 25, 2024
1 parent c0bb7af commit 4881150
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/rbac-backend/__fixtures__/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import { MockClient } from 'knex-mock-client';

import { CasbinDBAdapterFactory } from '../src/database/casbin-adapter-factory';
import { RoleMetadataStorage } from '../src/database/role-metadata';
import { RBACPermissionPolicy } from '../src/policies/permission-policy';
import { BackstageRoleManager } from '../src/role-manager/role-manager';
import { EnforcerDelegate } from '../src/service/enforcer-delegate';
import { MODEL } from '../src/service/permission-model';
import { RBACPermissionPolicy } from '../src/service/permission-policy';
import { PluginPermissionMetadataCollector } from '../src/service/plugin-endpoints';
import {
auditLoggerMock,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
RoleMetadataDao,
RoleMetadataStorage,
} from '../database/role-metadata';
import { ADMIN_ROLE_AUTHOR } from '../policies/permission-policy';
import { BackstageRoleManager } from '../role-manager/role-manager';
import { EnforcerDelegate } from '../service/enforcer-delegate';
import { MODEL } from '../service/permission-model';
Expand Down
1 change: 0 additions & 1 deletion plugins/rbac-backend/src/helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
typedPoliciesToString,
typedPolicyToString,
} from './helper';
import { ADMIN_ROLE_AUTHOR } from './policies/permission-policy';
// Import the function to test
import { EnforcerDelegate } from './service/enforcer-delegate';

Expand Down
1 change: 0 additions & 1 deletion plugins/rbac-backend/src/service/enforcer-delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
RoleMetadataStorage,
} from '../database/role-metadata';
import { mergeRoleMetadata, policiesToString, policyToString } from '../helper';
import { ADMIN_ROLE_NAME } from '../policies/permission-policy';
import { MODEL } from './permission-model';

export type RoleEvents = 'roleAdded';
Expand Down

0 comments on commit 4881150

Please sign in to comment.