Skip to content

Commit

Permalink
Update MenuTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz authored Mar 24, 2024
1 parent 0ae853a commit df57fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/casbin/MenuTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void testMenu() {

assertFalse(enforcer.enforce("ROLE_ROOT", "UserMenu", "read"));
assertTrue(enforcer.enforce("ROLE_ADMIN", "UserMenu", "read"));
assertTrue(enforcer.enforce("ROLE_USER", "UserMenu", "read"));
assertFalse(enforcer.enforce("ROLE_USER", "UserMenu", "read"));

assertFalse(enforcer.enforce("ROLE_ROOT", "UserSubMenu_allow", "read"));
assertTrue(enforcer.enforce("ROLE_ADMIN", "UserSubMenu_allow", "read"));
Expand Down

0 comments on commit df57fe1

Please sign in to comment.