Page MenuHomePhabricator

Generalize Legalpad validation logic for "Require Signature"
ClosedPublic

Authored by epriestley on Mar 22 2019, 4:27 PM.
Tags
None
Referenced Files
F22678002: D20311.id48465.diff
Thu, Oct 1, 11:51 PM
Unknown Object (File)
Thu, Sep 17, 7:39 PM
Unknown Object (File)
Sep 1 2026, 2:52 PM
Unknown Object (File)
Aug 22 2026, 1:50 PM
Unknown Object (File)
Aug 17 2026, 7:06 PM
Unknown Object (File)
Aug 17 2026, 4:39 PM
Unknown Object (File)
Mar 3 2026, 1:19 AM
Unknown Object (File)
Dec 2 2025, 12:28 PM
Subscribers
None

Details

Summary

See downstream https://phabricator.wikimedia.org/T208254.

I can't actually reproduce any issue here (we only show this field when creating a document, and only if the viewer is an administrator), so maybe this relied on some changes or was originally reported against older code.

Regardless, the validation isn't quite right: it requires administrator privileges to apply this transaction at all, but should only require administrator privileges to change the value.

Test Plan

Edited Legalpad documents as an administrator and non-administrator before and after the change, with and without signatures being required.

Couldn't reproduce the original issue, but this version is generally more correct/robust.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable