Skip to content

Commit

Permalink
Fix ng import
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Nov 6, 2023
1 parent d309048 commit 25ff5e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/planning-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {AssignmentsList} from './assignments-overview';
import {IPlanningExtensionConfigurationOptions} from './extension_configuration_options';
import {AutopostIngestRuleEditor} from './ingest_rule_autopost/AutopostIngestRuleEditor';
import {AutopostIngestRulePreview} from './ingest_rule_autopost/AutopostIngestRulePreview';
import ng from 'superdesk-core/scripts/core/services/ng';
import {extensionBridge} from './extension_bridge';
const {isContentLinkToCoverageAllowed} = extensionBridge.assignments.utils;

Expand Down Expand Up @@ -123,8 +122,8 @@ const extension: IExtension = {
if (
!item.assignment_id &&
isContentLinkToCoverageAllowed(item) &&
!ng.get('archiveService').isPersonal(item) &&
ng.get('privileges').hasUserPrivileges({archive: 1}) &&
!superdesk.entities.article.isPersonal(item) &&
superdesk.privileges.hasPrivilege('archive') &&
!superdesk.entities.article.isLockedInOtherSession(item) &&
!['killed', 'recalled', 'unpublished', 'spiked', 'correction'].includes(item.state)
) {
Expand Down

0 comments on commit 25ff5e5

Please sign in to comment.