mirror of https://github.com/openclaw/openclaw.git
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:
parent
f594e2ac3b
commit
98fc314799
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue