From df57fe1a547507a157c563b0cdfb935f76e4eaff Mon Sep 17 00:00:00 2001 From: Eric Luo Date: Sun, 24 Mar 2024 16:12:02 +0800 Subject: [PATCH] Update MenuTest.java --- src/test/java/org/casbin/MenuTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/casbin/MenuTest.java b/src/test/java/org/casbin/MenuTest.java index 3264945..8639fb9 100644 --- a/src/test/java/org/casbin/MenuTest.java +++ b/src/test/java/org/casbin/MenuTest.java @@ -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"));