We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d6e88 commit 9e70ea8Copy full SHA for 9e70ea8
common/core/permission.py
@@ -79,9 +79,9 @@ def get_menu_pk(permission_data, url):
79
# 1.直接get api/system/permission$ /api/system/config/system
80
p_data = permission_data.get(f"{url[1:]}$")
81
if not p_data:
82
- for p_path, p_data in permission_data.items():
+ for p_path, permission_item in permission_data.items():
83
if re.match(f"/{p_path}", url):
84
- return p_data
+ return permission_item
85
return p_data
86
87
0 commit comments