chore: fix function names in comment

Signed-off-by: youngwendy <clonefetch@outlook.com>
pull/3135/head
youngwendy 2024-04-12 18:46:40 +08:00
parent 8e79294413
commit e104cbad10
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ func TestUnauthorizedListUsers(t *testing.T) {
}
}
// TestUnauthorizedModifyUsers verifies that users without ModifySystem
// TestUnauthorizedGetUser verifies that users without ModifySystem
// permission (a "standard" user) can only get or modify their own information.
func TestUnauthorizedGetUser(t *testing.T) {
testCtx := setupTest(t)
@ -187,7 +187,7 @@ func TestUnauthorizedGetUser(t *testing.T) {
}
}
// TestUnauthorizedModifyRole ensures that users without the ModifySystem
// TestUnauthorizedSetRole ensures that users without the ModifySystem
// privilege are unable to modify their own role, preventing a potential
// privilege escalation issue.
func TestUnauthorizedSetRole(t *testing.T) {