Index: arms/html/template/page-sidebar.html
===================================================================
diff -u -r6357b4ae3753a05d57837c2c78e0906f2f2900cc -rdacf66e95f816ccab275b17ecc82eed8635e9859
--- arms/html/template/page-sidebar.html (.../page-sidebar.html) (revision 6357b4ae3753a05d57837c2c78e0906f2f2900cc)
+++ arms/html/template/page-sidebar.html (.../page-sidebar.html) (revision dacf66e95f816ccab275b17ecc82eed8635e9859)
@@ -13,7 +13,7 @@
Index: reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss
===================================================================
diff -u -r6357b4ae3753a05d57837c2c78e0906f2f2900cc -rdacf66e95f816ccab275b17ecc82eed8635e9859
--- reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss (.../layout.scss) (revision 6357b4ae3753a05d57837c2c78e0906f2f2900cc)
+++ reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss (.../layout.scss) (revision dacf66e95f816ccab275b17ecc82eed8635e9859)
@@ -76,16 +76,18 @@
console.log("롤에 의한 메뉴를 설정합니다.");
var role_user = "ROLE_USER";
+ var role_manager = "ROLE_MANAGER";
var role_admin = "ROLE_ADMIN";
- if(permissions.indexOf(role_user) != -1){
+
+ if( isEmpty(permissions) == false && permissions.indexOf(role_user) != -1){
console.log("user 권한의 메뉴를 표현합니다.");
$("#menu_login").addClass("hide");
$("#menu_dashboard").removeClass("hide");
$("#menu_dashboard").removeClass("hide");
$("#menu_alm").removeClass("hide");
$("#menu_requirement").removeClass("hide");
}
- if(permissions.indexOf(role_admin) != -1){
+ if( isEmpty(permissions) == false && permissions.indexOf(role_admin) != -1){
console.log("admin 권한의 메뉴를 표현합니다.");
$("#menu_login").addClass("hide");
$("#menu_dashboard").removeClass("hide");
Index: package.json
===================================================================
diff -u -radbcbbee4cf58622bb0052497141c7a78abb9642 -rdacf66e95f816ccab275b17ecc82eed8635e9859
--- package.json (.../package.json) (revision adbcbbee4cf58622bb0052497141c7a78abb9642)
+++ package.json (.../package.json) (revision dacf66e95f816ccab275b17ecc82eed8635e9859)
@@ -24,7 +24,6 @@
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-router": "^5.0.8",
"@vue/cli-service": "~5.0.0",
- "R2": "^1.4.3",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"grunt": "1.6.1",
@@ -51,6 +50,7 @@
"grunt-text-replace": "0.4.0",
"less": "^3",
"prettier": "2.8.4",
+ "R2": "^1.4.3",
"serve-static": "1.15.0"
},
"eslintConfig": {