[WEB-2357] fix: update and redefine user roles across the platform (#5466)
* chore: removed viewer role * chore: indentation * chore: remove viewer role * chore: handled user permissions in store * chore: updated the migration file * chore: updated user permissions store * chore: removed the owner key * chore: code refactor * chore: code refactor * chore: code refactor * chore: code refactor * chore: code refactor * fix: build error * chore: updated user permissions store and handled the permissions fetch in workspace and project wrappers * chore: package user enum updated * chore: user permission updated * chore: user permission updated * chore: resolved build errors * chore: resolved build error * chore: resolved build errors * chore: computedFn deep map issue resolved * chore: added back migration * chore: added new field in project table * chore: removed member store in users * chore: private project for admins * chore: workspace notification access validation updated * fix: workspace member edit option * fix: project intake permission validation updated * chore: workspace export settings permission updated * chore: guest_view_all_issues added * chore: guest_view_all_issues added * chore: key changed for guest access * chore: added validation for individual issues * chore: changed the dashboard issues count * chore: added new yarn file * chore: modified yarn file * chore: project page permission updated * chore: project page permission updated * chore: member setting ux updated * chore: build error * fix: yarn lock * fix: build error --------- Co-authored-by: gurusainath <gurusainath007@gmail.com> Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
This commit is contained in:
parent
7013a36629
commit
fdcd9a376c
172 changed files with 2057 additions and 1627 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// types
|
||||
import { TStaticViewTypes } from "@plane/types";
|
||||
import { EUserPermissions } from "@/plane-web/constants/user-permissions";
|
||||
// services images
|
||||
import CSVLogo from "@/public/services/csv.svg";
|
||||
import ExcelLogo from "@/public/services/excel.svg";
|
||||
|
|
@ -7,34 +8,22 @@ import GithubLogo from "@/public/services/github.png";
|
|||
import JiraLogo from "@/public/services/jira.svg";
|
||||
import JSONLogo from "@/public/services/json.svg";
|
||||
|
||||
export enum EUserWorkspaceRoles {
|
||||
GUEST = 5,
|
||||
VIEWER = 10,
|
||||
MEMBER = 15,
|
||||
ADMIN = 20,
|
||||
}
|
||||
|
||||
export const ROLE = {
|
||||
5: "Guest",
|
||||
10: "Viewer",
|
||||
15: "Member",
|
||||
20: "Admin",
|
||||
[EUserPermissions.GUEST]: "Guest",
|
||||
[EUserPermissions.MEMBER]: "Member",
|
||||
[EUserPermissions.ADMIN]: "Admin",
|
||||
};
|
||||
|
||||
export const ROLE_DETAILS = {
|
||||
5: {
|
||||
[EUserPermissions.GUEST]: {
|
||||
title: "Guest",
|
||||
description: "External members of organizations can be invited as guests.",
|
||||
},
|
||||
10: {
|
||||
title: "Viewer",
|
||||
description: "External members of organizations can be invited as guests.",
|
||||
},
|
||||
15: {
|
||||
[EUserPermissions.MEMBER]: {
|
||||
title: "Member",
|
||||
description: "Ability to read, write, edit, and delete entities inside projects, cycles, and modules",
|
||||
},
|
||||
20: {
|
||||
[EUserPermissions.ADMIN]: {
|
||||
title: "Admin",
|
||||
description: "All permissions set to true within the workspace.",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue