Procházet zdrojové kódy

게시글 볼 때 ACL이 과하게 적용되는 문제 해결

https://github.com/openNAMU/openNAMU/issues/1882
잉여개발기 (SPDV) před 2 roky
rodič
revize
5707e9b6bb
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      route/tool/func.py
  2. 1 1
      route/user_setting_skin_set_main.py

+ 1 - 1
route/tool/func.py

@@ -1959,7 +1959,7 @@ def acl_check(name = 'test', tool = '', topic_num = '1'):
                 else:
                     acl_data = [['normal']]
 
-            except_ban_tool_list = ['render', 'topic_view']
+            except_ban_tool_list = ['render', 'topic_view', 'bbs_view']
             if acl_data[0][0] != 'normal':
                 if not acl_data[0][0] in ['ban', 'ban_admin'] and not tool in except_ban_tool_list:
                     if get_ban == 1:

+ 1 - 1
route/user_setting_skin_set_main.py

@@ -234,5 +234,5 @@ def user_setting_skin_set_main():
                         <button type="submit">''' + load_lang('save') + '''</button>
                     </form>
                 '''),
-                menu = [['change', load_lang('user_setting')], ['change/skin_set', load_lang('skin_set')]]
+                menu = [['change', load_lang('user_setting')], ['change/skin_set', load_lang('skin_set')], ['setting/skin_set', load_lang('main_skin_set_default')]]
             ))