Skip to content

Commit

Permalink
Add notification
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Oct 9, 2024
1 parent 1dca13f commit 652b26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/planning-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ const extension: IExtension = {
onTrigger: () => {
const superdeskArticle = superdesk.entities.article;

// keep in sync with index.ts:108
if (
superdesk.privileges.hasPrivilege('archive') &&
item.assignment_id != null &&
Expand Down Expand Up @@ -157,7 +156,6 @@ const extension: IExtension = {
const itemStates = ['killed', 'recalled', 'unpublished', 'spiked', 'correction'];
const {isContentLinkToCoverageAllowed} = extensionBridge.assignments.utils;

// keep in sync with index.ts:79
if (
!item.assignment_id &&
!superdesk.entities.article.isPersonal(item) &&
Expand All @@ -172,6 +170,8 @@ const extension: IExtension = {
{detail: {item: _item}},
));
});
} else {
superdesk.ui.notify.error('This action is not permitted');
}
},
}
Expand Down

0 comments on commit 652b26a

Please sign in to comment.