mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 07:11:06 +00:00
fix(mattermost): remove nonfunctional enabled and allowFrom from group schema
The enabled and allowFrom fields were accepted by the schema but not consumed by Mattermost runtime code, which could mislead operators into thinking group access was restricted when it was not.
This commit is contained in:
@@ -12,10 +12,6 @@ const MattermostGroupSchema = z
|
||||
.object({
|
||||
/** Whether mentions are required to trigger the bot in this group. */
|
||||
requireMention: z.boolean().optional(),
|
||||
/** Whether the bot is enabled in this group. */
|
||||
enabled: z.boolean().optional(),
|
||||
/** Allowlist of sender IDs permitted to interact in this group. */
|
||||
allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
|
||||
@@ -12,10 +12,6 @@ const MattermostGroupSchema = z
|
||||
.object({
|
||||
/** Whether mentions are required to trigger the bot in this group. */
|
||||
requireMention: z.boolean().optional(),
|
||||
/** Whether the bot is enabled in this group. */
|
||||
enabled: z.boolean().optional(),
|
||||
/** Allowlist of sender IDs permitted to interact in this group. */
|
||||
allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user