From 51365e66857e4b7a1d783b0309e20e855e393ae5 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 금, 10 12월 2021 10:10:26 +0900 Subject: [PATCH] 이슈전체보기/프로젝트전체보기 권한 설정 --- src/main/java/kr/wisestone/owl/constant/MngPermission.java | 52 ++++++++++++++++++++++++++++++++-------------------- 1 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/main/java/kr/wisestone/owl/constant/MngPermission.java b/src/main/java/kr/wisestone/owl/constant/MngPermission.java index 357ccaf..a322484 100644 --- a/src/main/java/kr/wisestone/owl/constant/MngPermission.java +++ b/src/main/java/kr/wisestone/owl/constant/MngPermission.java @@ -5,18 +5,21 @@ */ public class MngPermission { - public static final int USER_PERMISSION_MNG_WORKSPACE = 4096; // WORK SPACE 愿�由� 1000000000000 - public static final int USER_PERMISSION_MNG_PROJECT = 2048; // �봽濡쒖젥�듃 愿�由� 0100000000000 - public static final int USER_PERMISSION_MNG_USER = 1024; // USER 愿�由� 0010000000000 - public static final int USER_PERMISSION_MNG_ISSUE_STATUS = 512; // ISSUE SETTING 愿�由� 0001000000000 - public static final int USER_PERMISSION_MNG_WORKFLOW = 256; // WORK FLOW 愿�由� 0000100000000 - public static final int USER_PERMISSION_MNG_CUSTOME_FIELD = 128; // �궗�슜�옄�젙�쓽 �븘�뱶 愿�由� 0000010000000 - public static final int USER_PERMISSION_MNG_ISSUE_TYPE = 64; // ISSUE TYPE 愿�由� 0000000100000 - public static final int USER_PERMISSION_MNG_NOTICE = 32; // ISSUE TYPE 愿�由� 0000000010000 - public static final int USER_PERMISSION_MNG_FAQ = 16; // FAQ 愿�由� 0000000001000 - public static final int USER_PERMISSION_MNG_QNA = 8; // 怨듭��궗�빆 愿�由� 0000000000100 - public static final int USER_PERMISSION_MNG_EVENT = 4; // 怨듭��궗�빆 愿�由� 0000000000010 - public static final int USER_PERMISSION_MNG_GUIDE = 2; // �궗�슜�옄 �븣由� 愿�由� 0000000000001 + public static final int USER_PERMISSION_MNG_ISSUE_ALL = 32768; // �쟾泥� �씠�뒋 愿�由� + public static final int USER_PERMISSION_MNG_PROJECT_ALL = 16384; // �쟾泥� �봽濡쒖젥�듃 愿�由� + public static final int USER_PERMISSION_MNG_PARTNER = 8192; // �뾽泥�/ISP/�샇�뒪�똿 愿�由� 10000000000000 + public static final int USER_PERMISSION_MNG_WORKSPACE = 4096; // WORK SPACE 愿�由� 01000000000000 + public static final int USER_PERMISSION_MNG_PROJECT = 2048; // �봽濡쒖젥�듃 愿�由� 00100000000000 + public static final int USER_PERMISSION_MNG_API = 1024; // API 愿�由� 00010000000000 + public static final int USER_PERMISSION_MNG_ISSUE_STATUS = 512; // ISSUE SETTING 愿�由� 00001000000000 + public static final int USER_PERMISSION_MNG_WORKFLOW = 256; // WORK FLOW 愿�由� 000000100000000 + public static final int USER_PERMISSION_MNG_CUSTOME_FIELD = 128; // �궗�슜�옄�젙�쓽 �븘�뱶 愿�由� 00000010000000 + public static final int USER_PERMISSION_MNG_ISSUE_TYPE = 64; // ISSUE TYPE 愿�由� 00000000100000 + public static final int USER_PERMISSION_MNG_NOTICE = 32; // ISSUE TYPE 愿�由� 00000000010000 + public static final int USER_PERMISSION_MNG_FAQ = 16; // FAQ 愿�由� 00000000001000 + public static final int USER_PERMISSION_MNG_QNA = 8; // 怨듭��궗�빆 愿�由� 00000000000100 + public static final int USER_PERMISSION_MNG_EVENT = 4; // 怨듭��궗�빆 愿�由� 00000000000010 + public static final int USER_PERMISSION_MNG_GUIDE = 2; // �궗�슜�옄 �븣由� 愿�由� 00000000000001 public static final int USER_PERMISSION_MNG_NONE = 0; // public static final int USER_PERMISSION_MNG_ISSUE_SETTING = (USER_PERMISSION_MNG_ISSUE_STATUS | USER_PERMISSION_MNG_WORKFLOW | @@ -37,27 +40,36 @@ public static int makeAllPermission() { - int nPermission = (USER_PERMISSION_MNG_WORKSPACE | - USER_PERMISSION_MNG_PROJECT | - USER_PERMISSION_MNG_USER | + return (USER_PERMISSION_MNG_ISSUE_ALL | + USER_PERMISSION_MNG_PROJECT_ALL | + USER_PERMISSION_MNG_PARTNER | + USER_PERMISSION_MNG_WORKSPACE | + USER_PERMISSION_MNG_PROJECT | + USER_PERMISSION_MNG_API | USER_PERMISSION_MNG_NOTICE | USER_PERMISSION_MNG_FAQ | USER_PERMISSION_MNG_QNA | USER_PERMISSION_MNG_EVENT | USER_PERMISSION_MNG_GUIDE | USER_PERMISSION_MNG_ISSUE_SETTING); - - return nPermission; } public static int makeSubAllPermission() { - int nPermission = (/*USER_PERMISSION_MNG_WORKSPACE |*/ - USER_PERMISSION_MNG_USER | USER_PERMISSION_MNG_NOTICE | + return (/*USER_PERMISSION_MNG_WORKSPACE |*/ + USER_PERMISSION_MNG_ISSUE_ALL | USER_PERMISSION_MNG_PROJECT_ALL | + USER_PERMISSION_MNG_API | USER_PERMISSION_MNG_NOTICE | USER_PERMISSION_MNG_FAQ | USER_PERMISSION_MNG_QNA | USER_PERMISSION_MNG_EVENT | USER_PERMISSION_MNG_GUIDE | USER_PERMISSION_MNG_ISSUE_SETTING); + } - return nPermission; + // �씠�뒋 �떆�뒪�뀥 沅뚰븳 (�긽�깭, �썙�겕�뵆濡쒖슦, �궗�슜�옄 �젙�쓽 �븘�뱶, �씠�뒋�쑀�삎 �룷�븿) + public static int makeIssuePermission() + { + return (USER_PERMISSION_MNG_ISSUE_STATUS | + USER_PERMISSION_MNG_WORKFLOW | + USER_PERMISSION_MNG_CUSTOME_FIELD | + USER_PERMISSION_MNG_ISSUE_TYPE); } } -- Gitblit v1.8.0