PermissionsEnum.Tasks.isParticipant = function (userId, task) {
    var isParticipant = false;
    _.forEach(task.participants, function (participant) {
        if (participant.userId === userId) {
            isParticipant = true;