Skip to content

Commit

Permalink
Merge pull request #1127 from ioanpocol/master
Browse files Browse the repository at this point in the history
fix(correction): Allow the dateline to be changed on corrections
  • Loading branch information
ioanpocol authored Dec 22, 2017
2 parents 7efc84a + 4a43a25 commit 0f353c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/publish/content/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def _validate(self, original, updates):
if updates.get(EMBARGO) and not original.get(EMBARGO):
raise SuperdeskApiError.badRequestError("Embargo can't be set after publishing")

if self.publish_type in [ITEM_CORRECT, ITEM_KILL]:
if self.publish_type == ITEM_KILL:
if updates.get('dateline'):
raise SuperdeskApiError.badRequestError("Dateline can't be modified after publishing")
raise SuperdeskApiError.badRequestError("Dateline can't be modified on kill")

if self.publish_type == ITEM_PUBLISH and updated.get('rewritten_by'):
rewritten_by = get_resource_service(ARCHIVE).find_one(req=None, _id=updated.get('rewritten_by'))
Expand Down

0 comments on commit 0f353c6

Please sign in to comment.