Damien ACCORSI 7 лет назад
Родитель
Сommit
8c23f0a568
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3 1
      tracim/tracim/lib/workspace.py

+ 3 - 1
tracim/tracim/lib/workspace.py Просмотреть файл

@@ -107,7 +107,9 @@ class WorkspaceApi(object):
107 107
     def get_notifiable_roles(self, workspace: Workspace) -> [UserRoleInWorkspace]:
108 108
         roles = []
109 109
         for role in workspace.roles:
110
-            if role.do_notify==True and role.user!=self._user:
110
+            if role.do_notify==True \
111
+                    and role.user!=self._user \
112
+                    and role.user.is_active:
111 113
                 roles.append(role)
112 114
         return roles
113 115