mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-15 21:00:14 +00:00
[Web] Mail policies: store list entries the way they are compared, refuse unknown modes
This commit is contained in:
4 files changed
+25
-3
No files matched your search
@@ -105,9 +105,11 @@ class PolicyEngine
|
||||
}
|
||||
}
|
||||
return match ($mode) {
|
||||
'all' => true,
|
||||
'internal' => $internal || $this->any($allow, $matches),
|
||||
'list' => $this->any($allow, $matches),
|
||||
default => true,
|
||||
// an unknown mode lets nothing through
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user