This commit is contained in:
2026-02-13 14:02:21 +05:00
parent 0bf6dd74ca
commit 59f5ac5741
9 changed files with 303 additions and 53 deletions

View File

@@ -467,6 +467,8 @@ function canUserEditTask(task) {
// Администратор может всё
if (currentUser.role === 'admin') return true;
// Пользователи с ролью 'tasks' могут редактировать любые задачи
if (currentUser.role === 'tasks') return true;
// Создатель может редактировать свою задачу
if (parseInt(task.created_by) === currentUser.id) {