itizawa vor 6 Jahren
Ursprung
Commit
951044d2c4
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      src/server/service/global-notification/index.js

+ 10 - 0
src/server/service/global-notification/index.js

@@ -48,6 +48,14 @@ class GlobalNotificationService {
     ]);
   }
 
+  /**
+   * fire global notification
+   *
+   * @memberof GlobalNotificationService
+   *
+   * @param {number} grant page grant
+   * @return {boolean} isSendNotification
+   */
   isSendNotification(grant) {
     switch (grant) {
       case this.Page.GRANT_PUBLIC:
@@ -57,8 +65,10 @@ class GlobalNotificationService {
       case this.Page.GRANT_SPECIFIED:
         return false;
       case this.Page.GRANT_OWNER:
+        // TODO GW 1271 switch isEnabled
         return (this.crowi.configManager.getConfig('crowi', 'notification:owner-page:isEnabled') || false);
       case this.Page.GRANT_USER_GROUP:
+        // TODO GW 1271 switch isEnabled
         return (this.crowi.configManager.getConfig('crowi', 'notification:group-page:isEnabled') || false);
     }
   }