Skip to content

Commit

Permalink
fix(handler-pdf): check status only for admins
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem committed Nov 26, 2022
1 parent 83a35f3 commit f55ad7c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions javascripts/handler-pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ let appParams = {
},
createupdateStatusTimer: function(url,uuid){
this.clearTimer();
let urlToFollow = this.getUrlToUpdateStatus(url,uuid);
if (urlToFollow.length > 0){
this.createupdateStatusTimerDirect(urlToFollow);
if (this.isAdmin){
let urlToFollow = this.getUrlToUpdateStatus(url,uuid);
if (urlToFollow.length > 0){
this.createupdateStatusTimerDirect(urlToFollow);
}
}
},
createupdateStatusTimerDirect: function(url){
Expand Down

0 comments on commit f55ad7c

Please sign in to comment.