Skip to content

Commit

Permalink
- fixes unauthorized access message
Browse files Browse the repository at this point in the history
  • Loading branch information
temi committed Jun 5, 2024
1 parent 79cb75e commit 55c5d23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions grails-app/assets/javascripts/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,12 @@ var entities = (function () {
}

return standardiseResult(result);
}, function () {
return offlineGetProjectActivityMetadata(projectActivityId, activityId)
}, function (xhr, status, error) {
// project activity is resticted and user is not a member of project.
if (status === "401")
return $.Deferred().reject({message: "Unauthorized"});
else
return offlineGetProjectActivityMetadata(projectActivityId, activityId);
});
}

Expand Down

0 comments on commit 55c5d23

Please sign in to comment.