Merge ~twom/launchpad:oci-policy-default-the-current-officialness into launchpad:master
Proposed by
Tom Wardill
Status: | Merged |
---|---|
Approved by: | Tom Wardill |
Approved revision: | 088e517e2f81b5ee3687833e2c669e2a3b89cc9c |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~twom/launchpad:oci-policy-default-the-current-officialness |
Merge into: | launchpad:master |
Diff against target: |
41 lines (+18/-1) 2 files modified
lib/lp/oci/browser/ocirecipe.py (+1/-1) lib/lp/oci/browser/tests/test_ocirecipe.py (+17/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tom Wardill (community) | Approve | ||
Thiago F. Pappacena (community) | Approve | ||
Review via email: mp+396844@code.launchpad.net |
Commit message
Fix official value on editing while not an admin
Description of the change
If a recipe had been set to official, but you were not an admin, the official control would default to False and the edit would fail as you have no permissions to change it.
Fix by making the default value of the control to be the current official status, rather than defaulting to False.
To post a comment you must log in.
LGTM