feat: 切换角色

This commit is contained in:
zy7y
2022-09-14 00:39:19 +08:00
parent 9766950106
commit d79b39b7eb
18 changed files with 255 additions and 50 deletions

View File

@@ -74,7 +74,7 @@ async def check_permissions(request: Request, user: UserModel = Depends(check_to
whitelist = [f"/user/{user.id}", f"/role/{active_rid}/menu"]
flag = request.url.path in whitelist and request.method == "GET"
if flag:
return
return user
api = request.url.path
for k, v in request.path_params.items():