diff --git a/apps/www/src/client/App.tsx b/apps/www/src/client/App.tsx index 317804e..d13a93c 100644 --- a/apps/www/src/client/App.tsx +++ b/apps/www/src/client/App.tsx @@ -2045,9 +2045,9 @@ function RoomPage({ /** * A room as anyone sees it: the same hero the owner's page draws, with the creator linked - * to their profile in place of the upload control, then the room's public facts, the - * photos players took in it, and its subrooms — read-only, since nothing here is the - * viewer's to change. + * to their profile in place of the upload control, then the room's public facts and the + * photos players took in it — read-only, since nothing here is the viewer's to change. + * Staff also see its subrooms; the owner gets them on their own page instead. */ function PublicRoomView({ room, @@ -2131,27 +2131,31 @@ function PublicRoomView({ )} -
-

Subrooms

- {subRooms.length === 0 ? ( -

This room has no subrooms.

- ) : ( - - )} -
+ {/* Staff only: a visitor has no use for the room's internals. The owner sees them on + their own page (RoomDetail), never this one. */} + {isAdmin() && ( +
+

Subrooms

+ {subRooms.length === 0 ? ( +

This room has no subrooms.

+ ) : ( + + )} +
+ )} {/* Staff only, and cosmetic: hidden for everyone else, but `rooms` checks the token's role itself on the DELETE. */}