1、前台/team-management加入申请的通过失败按钮增加一下图标,区分一下

2、前台/join-team页面上边要增加网站名称,要不然用户看不到是什么网站
3、后台/users的后台用户我新增一个,然后设置菜单权限,实际登陆没有生效
This commit is contained in:
2026-07-07 16:20:08 +08:00
parent b92dd75fd4
commit a0def59ece
9 changed files with 76 additions and 26 deletions
+11
View File
@@ -104,3 +104,14 @@ async def get_admin_user(
detail="需要管理员权限",
)
return current_user
async def get_backend_user(
current_user: User = Depends(get_current_user_allow_password_pending),
) -> User:
if current_user.user_type != "admin":
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail="需要后台用户权限",
)
return current_user