Skip to content

Commit 9ab6039

Browse files
committed
Rename OtherMenu to SystemMenu
1 parent 11a2e97 commit 9ab6039

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

examples/casbin/policy.csv

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
p, ROLE_ROOT, OtherMenu, read, allow
1+
p, ROLE_ROOT, SystemMenu, read, allow
22
p, ROLE_ROOT, AdminMenu, read, allow
33
p, ROLE_ROOT, UserMenu, read, deny
44
p, ROLE_ADMIN, UserMenu, read, allow
@@ -16,4 +16,4 @@ g2, UserSubMenu_deny, UserMenu
1616
g2, UserSubSubMenu, UserSubMenu_allow
1717
g2, AdminSubMenu_allow, AdminMenu
1818
g2, AdminSubMenu_deny, AdminMenu
19-
g2, (NULL), OtherMenu
19+
g2, (NULL), SystemMenu

src/main/java/org/casbin/controller/TestMenuController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public String AdminSubMenu_deny(){
5353
return "AdminMenu/AdminSubMenu_deny";
5454
}
5555

56-
@GetMapping(value = "menu/OtherMenu")
56+
@GetMapping(value = "menu/SystemMenu")
5757
public String SystemMenu(){
58-
return "OtherMenu/OtherMenu";
58+
return "SystemMenu/SystemMenu";
5959
}
6060

6161
}

src/main/resources/casbin/policy.csv

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
p, ROLE_ROOT, OtherMenu, read, allow
1+
p, ROLE_ROOT, SystemMenu, read, allow
22
p, ROLE_ROOT, AdminMenu, read, allow
33
p, ROLE_ROOT, UserMenu, read, deny
44
p, ROLE_ADMIN, UserMenu, read, allow
@@ -16,4 +16,4 @@ g2, UserSubMenu_deny, UserMenu
1616
g2, UserSubSubMenu, UserSubMenu_allow
1717
g2, AdminSubMenu_allow, AdminMenu
1818
g2, AdminSubMenu_deny, AdminMenu
19-
g2, (NULL), OtherMenu
19+
g2, (NULL), SystemMenu

src/main/resources/templates/OtherMenu/OtherMenu.html src/main/resources/templates/SystemMenu/SystemMenu.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>OtherMenu</title>
5+
<title>SystemMenu</title>
66
<style>
77
body {
88
display: flex;
@@ -18,7 +18,7 @@
1818
</head>
1919
<body>
2020
<div>
21-
OtherMenu
21+
SystemMenu
2222
</div>
2323
</body>
2424
</html>

0 commit comments

Comments
 (0)