Согласование документов
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user