Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   model.unread = res.val();
  2.                     if (model.unread.pm == null) {
  3.                         model.unread.pm = 0;
  4.                     }
  5.                     if (model.unread.tm == null) {
  6.                         model.unread.tm = 0;
  7.                     }
  8.                     if (user.role().isTM()) {
  9.                         model.unread.user++;
  10.                         model.unread.pm++;
  11.                     } else if (user.role().isUser()) {
  12.                         // model.unread.system++;
  13.                         model.unread.pm++;
  14.                         model.unread.tm++;
  15.                     } else if (user.role().isQA()) {
  16.                         model.unread.user++;
  17.                         model.unread.tm++;
  18.                     } else if(user.role().isSA()){
  19.                         model.unread.user++;
  20.                         model.unread.tm++;
  21.                         model.unread.pm++;
  22.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement