snoopdave opened a new pull request, #394: URL: https://github.com/apache/roller/pull/394
Follow-up to #381, from a code review with Gemini Neon. Two membership paths didn't fully apply the rule that only a global admin changes Admin on the aggregated front-page weblog. - `MembersInvite.save()` accepts only `admin`, `post` or `edit_draft` as the invited role. Any other value, including a list of roles, is refused with a new message, `inviteMember.error.unknownPermission`. - `MemberResign.resign()` refuses when an Admin who isn't a global admin resigns from the aggregated front-page weblog. Authors and Limited members can still resign, and the existing last-Admin check is unchanged. - `FrontPageAdminMembershipTest`: 5 new tests. 3 fail without the change; 2 confirm that resigning still works where it should. Full suite on JDK 11: 862 tests, 0 failures. `CHANGES.md` 6.1.8 updated. For 6.1.8 RC3. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
