fix: complete mobile and session interactions

This commit is contained in:
OpenClaw Agent
2026-09-22 04:21:59 +08:00
parent 16bc14f61b
commit beeee8191b
4 changed files with 25 additions and 10 deletions
+10
View File
@@ -52,6 +52,16 @@ func TestParseRulesGuestDefaultAndOverride(t *testing.T) {
}
}
func TestParseRulesAdminAccount(t *testing.T) {
m, err := ParseRules([]string{"::r|admin:secret:rw"})
if err != nil {
t.Fatal(err)
}
if !m.Accounts["admin"].Admin {
t.Fatal("admin account should be marked admin")
}
}
func TestSectionRuleSemantics(t *testing.T) {
a := &Account{Mask: Delete, Rules: []PathRule{
{Dir: "private", Mask: None, Deny: true},