itizawa %!s(int64=6) %!d(string=hai) anos
pai
achega
951044d2c4
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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) {
   isSendNotification(grant) {
     switch (grant) {
     switch (grant) {
       case this.Page.GRANT_PUBLIC:
       case this.Page.GRANT_PUBLIC:
@@ -57,8 +65,10 @@ class GlobalNotificationService {
       case this.Page.GRANT_SPECIFIED:
       case this.Page.GRANT_SPECIFIED:
         return false;
         return false;
       case this.Page.GRANT_OWNER:
       case this.Page.GRANT_OWNER:
+        // TODO GW 1271 switch isEnabled
         return (this.crowi.configManager.getConfig('crowi', 'notification:owner-page:isEnabled') || false);
         return (this.crowi.configManager.getConfig('crowi', 'notification:owner-page:isEnabled') || false);
       case this.Page.GRANT_USER_GROUP:
       case this.Page.GRANT_USER_GROUP:
+        // TODO GW 1271 switch isEnabled
         return (this.crowi.configManager.getConfig('crowi', 'notification:group-page:isEnabled') || false);
         return (this.crowi.configManager.getConfig('crowi', 'notification:group-page:isEnabled') || false);
     }
     }
   }
   }