Согласование документов

This commit is contained in:
2026-02-13 21:48:19 +05:00
parent db2ae5a654
commit 7f49bed72e

View File

@@ -134,7 +134,7 @@ async function createTask(event) {
const groups = await getUserGroups(userId); const groups = await getUserGroups(userId);
const hasSecretaryGroup = groups.some(group => const hasSecretaryGroup = groups.some(group =>
group.name === 'Секретарь' || group.name === 'Секретарь' ||
(typeof group === 'string' && group.includes('Секретарь')) (typeof group === 'string' && group.includes('Согласование документов'))
); );
if (!hasSecretaryGroup) { if (!hasSecretaryGroup) {