From 8f755f84299ed3365d834c90cba96f69cb224498 Mon Sep 17 00:00:00 2001 From: hero_124 Date: Sat, 10 Oct 2026 14:53:26 +0000 Subject: [PATCH] Botao Edit in Studio na pagina do jogo (so para quem pode editar) --- RobloxServer.Web/PlaceItem.aspx | 2 ++ RobloxServer.Web/PlaceItem.aspx.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/RobloxServer.Web/PlaceItem.aspx b/RobloxServer.Web/PlaceItem.aspx index 75ac00c..76eeee7 100644 --- a/RobloxServer.Web/PlaceItem.aspx +++ b/RobloxServer.Web/PlaceItem.aspx @@ -22,6 +22,8 @@
Play + +
diff --git a/RobloxServer.Web/PlaceItem.aspx.cs b/RobloxServer.Web/PlaceItem.aspx.cs index 4a3be26..d179b5c 100644 --- a/RobloxServer.Web/PlaceItem.aspx.cs +++ b/RobloxServer.Web/PlaceItem.aspx.cs @@ -43,6 +43,7 @@ protected void Page_Load(object sender, EventArgs e) PlaceLauncher.Attributes["data-login-url"] = ResolveUrl("~/Login.aspx?ReturnUrl=" + Server.UrlEncode(Request.RawUrl)); PlaceLauncher.Attributes["data-logged-in"] = user != null ? "true" : "false"; HostPanel.Visible = PlaceService.CanHost(user, place); + PlaceLauncher.Attributes["data-can-edit"] = PlaceService.CanEdit(user, place) ? "true" : "false"; DownloadLink.HRef = ResolveUrl("~/asset/?id=" + place.Id); ThumbnailImage.Src = PlaceThumb(place.Id, "420x230"); ThumbnailImage.Alt = place.Name;