Преглед изворни кода

Merge pull request #9001 from weseek/fix/151602-non-admin-user-gets-500-error-when-opening-history-modal

fix: Non-admin user gets 500 error when opening history modal
Yuki Takei пре 1 година
родитељ
комит
36d4d53641
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/app/src/server/routes/apiv3/customize-setting.js

+ 1 - 1
apps/app/src/server/routes/apiv3/customize-setting.js

@@ -272,7 +272,7 @@ module.exports = (crowi) => {
     }
     }
   });
   });
 
 
-  router.get('/theme', loginRequiredStrictly, adminRequired, async(req, res) => {
+  router.get('/theme', loginRequiredStrictly, async(req, res) => {
 
 
     try {
     try {
       const currentTheme = await crowi.configManager.getConfig('crowi', 'customize:theme');
       const currentTheme = await crowi.configManager.getConfig('crowi', 'customize:theme');