refactor(dashboard): extract RoleGuard and unify mobile nav with Button
This commit is contained in:
@@ -42,10 +42,6 @@ export default function ServicesPage() {
|
||||
const scopedPlayerIdSet = new Set(scopedPlayerIds)
|
||||
const scopedServices = services.filter((service) => scopedPlayerIdSet.has(service.playerId))
|
||||
|
||||
if (currentRole !== "player" && currentRole !== "owner") {
|
||||
return <div className="text-sm text-muted-foreground">当前身份不可管理服务</div>
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="container mx-auto max-w-6xl px-4 py-8 space-y-8">
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user