snoopdave commented on code in PR #235:
URL: https://github.com/apache/roller/pull/235#discussion_r4498537006
##########
app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/EntryEdit.java:
##########
@@ -155,6 +158,9 @@ public String saveDraft() {
if (!requireEntry()) {
return INPUT;
}
+ if (!canWriteEntry()) {
Review Comment:
🤖Claude: fixed by moving the check into `myPrepare()`: when the member can't
write the saved entry, the action clears `entry` and `execute()`,
`firstSave()`, `saveDraft()` and `publish()` return DENIED, so the INPUT result
after failed validation has no entry to show. Test:
failedValidationShowsNoEntryToALimitedMember.
--
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]