mirror of
https://github.com/makeplane/plane.git
synced 2026-05-08 00:49:36 -05:00
fix: Permission levels for project settings (#2978)
* fix add subgroup issue FED-1101 * fix subgroup by None assignee FED-1100 * fix grouping by asignee or labels FED-1096 * fix create view popup FED-1093 * fix subgroup exception in swimlanes * fix show sub issue filter FED-1102 * use Enums instead of numbers * fix Estimates setting permission for admin * disable access to project settings for viewers and guests * fix project unautorized flicker * add observer to estimates * add permissions to member list
This commit is contained in:
committed by
sriram veeraghanta
parent
c346d82b0b
commit
a36aa4d093
@@ -1,12 +1,14 @@
|
||||
export const getUserRole = (role: number) => {
|
||||
import { EUserWorkspaceRoles } from "constants/workspace";
|
||||
|
||||
export const getUserRole = (role: EUserWorkspaceRoles) => {
|
||||
switch (role) {
|
||||
case 5:
|
||||
case EUserWorkspaceRoles.GUEST:
|
||||
return "GUEST";
|
||||
case 10:
|
||||
case EUserWorkspaceRoles.VIEWER:
|
||||
return "VIEWER";
|
||||
case 15:
|
||||
case EUserWorkspaceRoles.MEMBER:
|
||||
return "MEMBER";
|
||||
case 20:
|
||||
case EUserWorkspaceRoles.ADMIN:
|
||||
return "ADMIN";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user