LT-117: Remove the user from reviewers when session timeout
This commit is contained in:
1 parent
8ee2eaf644
commit
feb7f0972c
3 files changed
+13
-2
No files matched your search
@@ -62,7 +62,9 @@ Template.lesionTrackerLayout.onCreated(function() {
|
||||
clearInterval(handle);
|
||||
// Close the dialog
|
||||
dialog.css('display', 'none');
|
||||
|
||||
|
||||
// Remove reviewers info for the user
|
||||
Meteor.call('removeUserFromReviewers', Meteor.userId());
|
||||
}
|
||||
});
|
||||
});
|
||||
+1
-1
@@ -89,7 +89,7 @@ WorklistTabs.find().observe({
|
||||
removed: function(tab) {
|
||||
var contentId = tab.contentid;
|
||||
var timepointIds = ViewerData[contentId].timepointIds;
|
||||
if (timepointIds.length > 0) {
|
||||
if (timepointIds && timepointIds.length > 0) {
|
||||
timepointIds.forEach(function(timepointId) {
|
||||
// Remove the current user from Reviewers
|
||||
Meteor.call('removeReviewer', timepointId);
|
||||
|
||||
Reference in new issue
Block a user