Skip to content

Let only global admins manage Admin on the aggregated front-page weblog (6.1.x) - #381

Merged
snoopdave merged 2 commits into
merge-6.1.8-rc2-into-6.1.xfrom
front-page-admins-global-only-6.1.x
Nov 24, 2026
Merged

snoopdave merged 2 commits into
merge-6.1.8-rc2-into-6.1.xfrom
front-page-admins-global-only-6.1.x

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

With site.frontpage.weblog.aggregated=true, the front-page weblog's templates read the whole site, but any Admin of that weblog could promote members or invite new Admins.

  • On that weblog, granting, removing or inviting Admin now needs a global admin (UIAction.isAdminMembershipLocked, used by Members.save and MembersInvite.save). Other role changes and other weblogs are unchanged.
  • New FrontPageAdminMembershipTest: 6 tests, 3 fail without the change. Full suite on JDK 11: 853 tests, 0 failures.
  • CHANGES.md entry under 6.1.8 behaviour changes. Based on Bring roller-6.1.x up to the 6.1.8 RC2 tag #377; I'll retarget to roller-6.1.x after it merges. For 6.1.8 RC3.

Not changed: accepting an Admin invitation created before aggregation was turned on. The CHANGES entry tells operators to review the weblog's Admins first.

With aggregation on, the front-page weblog's templates read across the
whole site, so its Admins are trusted like global admins. A weblog Admin
could still promote members or invite new Admins there. Granting, removing
or inviting Admin on that weblog now needs a global admin.
@snoopdave
snoopdave requested a review from mraible November 24, 2026 04:38

@mraible mraible left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same change as #383, keyed by permission id; looks good. CI will run once this is retargeted to roller-6.1.x.

@snoopdave
snoopdave merged commit 4489110 into merge-6.1.8-rc2-into-6.1.x Nov 24, 2026
@snoopdave
snoopdave deleted the front-page-admins-global-only-6.1.x branch November 24, 2026 22:18
mraible added a commit that referenced this pull request Nov 24, 2026
…mbers page

This branch keys Members page rows by permission id, and #383's check read them by user id, so on the aggregated front page the check found no values and never applied. The check and FrontPageAdminMembershipTest now use the permission id, as #381 does on 6.1.x.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants