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;