Skip to content

Commit

Permalink
Rename OtherMenu to SystemMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Mar 24, 2024
1 parent 11a2e97 commit 9ab6039
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/casbin/policy.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
p, ROLE_ROOT, OtherMenu, read, allow
p, ROLE_ROOT, SystemMenu, read, allow
p, ROLE_ROOT, AdminMenu, read, allow
p, ROLE_ROOT, UserMenu, read, deny
p, ROLE_ADMIN, UserMenu, read, allow
Expand All @@ -16,4 +16,4 @@ g2, UserSubMenu_deny, UserMenu
g2, UserSubSubMenu, UserSubMenu_allow
g2, AdminSubMenu_allow, AdminMenu
g2, AdminSubMenu_deny, AdminMenu
g2, (NULL), OtherMenu
g2, (NULL), SystemMenu
4 changes: 2 additions & 2 deletions src/main/java/org/casbin/controller/TestMenuController.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public String AdminSubMenu_deny(){
return "AdminMenu/AdminSubMenu_deny";
}

@GetMapping(value = "menu/OtherMenu")
@GetMapping(value = "menu/SystemMenu")
public String SystemMenu(){
return "OtherMenu/OtherMenu";
return "SystemMenu/SystemMenu";
}

}
4 changes: 2 additions & 2 deletions src/main/resources/casbin/policy.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
p, ROLE_ROOT, OtherMenu, read, allow
p, ROLE_ROOT, SystemMenu, read, allow
p, ROLE_ROOT, AdminMenu, read, allow
p, ROLE_ROOT, UserMenu, read, deny
p, ROLE_ADMIN, UserMenu, read, allow
Expand All @@ -16,4 +16,4 @@ g2, UserSubMenu_deny, UserMenu
g2, UserSubSubMenu, UserSubMenu_allow
g2, AdminSubMenu_allow, AdminMenu
g2, AdminSubMenu_deny, AdminMenu
g2, (NULL), OtherMenu
g2, (NULL), SystemMenu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>OtherMenu</title>
<title>SystemMenu</title>
<style>
body {
display: flex;
Expand All @@ -18,7 +18,7 @@
</head>
<body>
<div>
OtherMenu
SystemMenu
</div>
</body>
</html>

0 comments on commit 9ab6039

Please sign in to comment.