feat: 应用cmdpriv时忽略不存在的命令

This commit is contained in:
RockChinQ
2023-08-06 14:42:23 +08:00
parent 549e4dc02e
commit 33efb94013

View File

@@ -327,6 +327,10 @@ def apply_privileges():
for path, priv in data.items():
if path == 'comment':
continue
if path not in __command_list__:
continue
if __command_list__[path]['privilege'] != priv:
logging.debug('应用权限: {} -> {}(default: {})'.format(path, priv, __command_list__[path]['privilege']))