Skip to content

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

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

snoopdave wants to merge 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.

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