Skip to content

FEAT: Expose editHtml permission in role management GUI (#452)#457

Open
loocars wants to merge 2 commits into
masterfrom
feat/edithtml-role-gui
Open

FEAT: Expose editHtml permission in role management GUI (#452)#457
loocars wants to merge 2 commits into
masterfrom
feat/edithtml-role-gui

Conversation

@loocars

@loocars loocars commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

The editHtml permission introduced with CVE-2024-47090 was kept in the hidden summarizePerms list and never seeded into the perms table, so it could only be granted through manual SQL.

This seeds Map/editHtml/* on fresh installs and idempotently (count-guarded) on update — safe against the UNIQUE(mod,act,obj) constraint and installs that already added it manually — and stops hiding it in Manage Roles → Permissions. Default posture is unchanged: only Administrators have it (via their */*/* wildcard), but an admin can now delegate HTML editing to another role from the GUI.

Refs #452

The editHtml permission (CVE-2024-47090) was hidden and never seeded into
the perms table, so it could only be granted via manual SQL. Seed it on
install and idempotently on update, and stop hiding it in the role
management dialog so admins can grant HTML editing to other roles.

Refs #452
@loocars
loocars requested a review from LarsMichelsen July 10, 2026 04:54
Comment thread share/server/core/classes/CorePDOHandler.php
Address review feedback: instead of a separate count-guarded block in
updateDb(), add the permission through the versioned 'updates' mechanism
like every other permission. Keyed at 1100500 (< CONST_VERSION) so it is
applied once on upgrade and never re-runs into the UNIQUE(mod,act,obj)
constraint on fresh installs, matching the existing Url permission pattern.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

Claude Code Review is paused for this repository. To reconnect it, an admin of this repository's GitHub organization (or the account owner, for personal repositories) who can also manage your Claude organization's Code Review settings needs to re-link GitHub in Code Review settings. This is a one-time step.

Tip: disable this comment in your organization's Code Review settings.

@loocars
loocars requested a review from LarsMichelsen July 15, 2026 04:57
@LarsMichelsen

Copy link
Copy Markdown
Contributor

@claude review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

Claude Code Review is paused for this repository. To reconnect it, an admin of this repository's GitHub organization (or the account owner, for personal repositories) who can also manage your Claude organization's Code Review settings needs to re-link GitHub in Code Review settings. This is a one-time step.

Tip: disable this comment in your organization's Code Review settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants