Browse Source

replace isGuesstAllowedToRead -> isGuestAllowedToRead

utsushiiro 7 years ago
parent
commit
acd8019fb8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/server/models/config.js
  2. 1 1
      src/server/util/middlewares.js

+ 1 - 1
src/server/models/config.js

@@ -349,7 +349,7 @@ module.exports = function(crowi) {
     return method != 'none';
     return method != 'none';
   };
   };
 
 
-  configSchema.statics.isGuesstAllowedToRead = function(config) {
+  configSchema.statics.isGuestAllowedToRead = function(config) {
     // return true if puclic wiki mode
     // return true if puclic wiki mode
     if (Config.isPublicWikiOnly(config)) {
     if (Config.isPublicWikiOnly(config)) {
       return true;
       return true;

+ 1 - 1
src/server/util/middlewares.js

@@ -223,7 +223,7 @@ exports.loginRequired = function(crowi, app, isStrictly = true) {
       var Config = crowi.model('Config');
       var Config = crowi.model('Config');
 
 
       // when allowed to read
       // when allowed to read
-      if (Config.isGuesstAllowedToRead(config)) {
+      if (Config.isGuestAllowedToRead(config)) {
         return next();
         return next();
       }
       }
     }
     }