diff --git a/plugins/rbac-backend/__fixtures__/test-utils.ts b/plugins/rbac-backend/__fixtures__/test-utils.ts index a515cd1575..1dba15c595 100644 --- a/plugins/rbac-backend/__fixtures__/test-utils.ts +++ b/plugins/rbac-backend/__fixtures__/test-utils.ts @@ -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, diff --git a/plugins/rbac-backend/src/file-permissions/csv-file-watcher.test.ts b/plugins/rbac-backend/src/file-permissions/csv-file-watcher.test.ts index 87f27a83f4..79afe666d3 100644 --- a/plugins/rbac-backend/src/file-permissions/csv-file-watcher.test.ts +++ b/plugins/rbac-backend/src/file-permissions/csv-file-watcher.test.ts @@ -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'; diff --git a/plugins/rbac-backend/src/helper.test.ts b/plugins/rbac-backend/src/helper.test.ts index b5f51a9d55..62e8f91d79 100644 --- a/plugins/rbac-backend/src/helper.test.ts +++ b/plugins/rbac-backend/src/helper.test.ts @@ -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'; diff --git a/plugins/rbac-backend/src/service/enforcer-delegate.ts b/plugins/rbac-backend/src/service/enforcer-delegate.ts index c55c8061ad..0bcdfd47d4 100644 --- a/plugins/rbac-backend/src/service/enforcer-delegate.ts +++ b/plugins/rbac-backend/src/service/enforcer-delegate.ts @@ -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';