diff --git a/src/lib/services/access-service.ts b/src/lib/services/access-service.ts index 59ded1d80d..2cab232343 100644 --- a/src/lib/services/access-service.ts +++ b/src/lib/services/access-service.ts @@ -21,11 +21,6 @@ import { export const ALL_PROJECTS = '*'; export const ALL_ENVS = '*'; -const PROJECT_DESCRIPTION = { - OWNER: 'Users with this role have full control over the project, and can add and manage other users within the project context, manage feature toggles within the project, and control advanced project features like archiving and deleting the project.', - MEMBER: 'Users with this role within a project are allowed to view, create and update feature toggles, but have limited permissions in regards to managing the projects user access and can not archive or delete the project.', -}; - const { ADMIN } = permissions; const PROJECT_ADMIN = [ @@ -287,7 +282,6 @@ export class AccessService { ): Promise<[IRole[], IUserWithRole[]]> { const roles = await this.store.getProjectRoles(); - console.log('GOt the following roles bacl', roles); const users = await Promise.all( roles.map(async (role) => { const usrs = await this.getProjectUsersForRole( diff --git a/src/lib/services/role-service.ts b/src/lib/services/role-service.ts index 569a0f47a6..6392a4c7c0 100644 --- a/src/lib/services/role-service.ts +++ b/src/lib/services/role-service.ts @@ -8,7 +8,6 @@ import { Logger } from '../logger'; interface IRoleCreation { name: string; description: string; - roleType: string; permissions?: IPermission[]; } @@ -43,7 +42,7 @@ export default class RoleService { const baseRole = { name: role.name, description: role.description, - roleType: role.roleType, + roleType: 'custom', }; const permissions = role.permissions; const newRole = await this.store.create(baseRole);