diff --git a/src/controllers/userProfileController.js b/src/controllers/userProfileController.js index 04805be15..977dbeeef 100644 --- a/src/controllers/userProfileController.js +++ b/src/controllers/userProfileController.js @@ -723,6 +723,9 @@ const userProfileController = function (UserProfile, Project) { if (PROTECTED_EMAIL_ACCOUNT.includes(record.email)) { updatedDiff = record.modifiedPaths(); } + if (req.body.role === 'Administrator') { + record.permissions.frontPermissions.push('updateTask'); + } record .save() .then((results) => {