Skip to content

Commit

Permalink
Keep conditions in sync with a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Sep 13, 2024
1 parent 57670c5 commit 07ab588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/planning-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const extension: IExtension = {
onTrigger: () => {
const superdeskArticle = superdesk.entities.article;

// keep in sync with client/planning-extension/src/extension.ts:123
if (
superdesk.privileges.hasPrivilege('archive') &&
item.assignment_id != null &&
Expand Down
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ function configurePlanning(superdesk) {
],
group: gettext('Planning'),
privileges: {archive: 1},

// keep in sync with client/planning-extension/src/extension.ts:126
additionalCondition: ['archiveService', 'item', 'authoring',
function(archiveService, item, authoring) {
return item.assignment_id &&
Expand Down

0 comments on commit 07ab588

Please sign in to comment.