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