Skip to content

Let only global admins manage Admin on the aggregated front-page weblog - #383

Open
snoopdave wants to merge 1 commit into
masterfrom
front-page-admins-global-only
Open

snoopdave wants to merge 1 commit into
masterfrom
front-page-admins-global-only

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

Master twin of #381: with aggregation on, the front-page weblog's templates read the whole site, but any Admin of that weblog could promote members or invite new Admins.

  • Granting, removing or inviting Admin on that weblog now needs a global admin. Master's Members page keys rows by user id, so the check does too.
  • New FrontPageAdminMembershipTest. Full suite on JDK 25 (release 21): 911 tests, 0 failures.
  • CHANGES.md entry under 7.0.0 behaviour changes. Note: master's Members.save fails on a permission whose user was deleted (6.1.x handles it); not changed here.

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.

@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.

Looks good. The check covers promoting, removing and inviting, and the members and invite pages are the only places that grant weblog permissions.

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