scripts/extensions/markForUser/src/common.ts
Function markForUserAndSendToNextStage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function markForUserAndSendToNextStage(
superdesk: ISuperdesk,
article: IArticle,
selectedUserId: IUser['_id'] | null,
) {
Consider simplifying this complex logical expression. Open
Open
if (
!hasPrivilege('mark_for_user')
|| isPersonal(article)
|| isArchived(article)
|| isPublished(article)