diff --git a/Service/Controllers/ProductController.cs b/Service/Controllers/ProductController.cs index 8519daf..6ff08f4 100644 --- a/Service/Controllers/ProductController.cs +++ b/Service/Controllers/ProductController.cs @@ -38,9 +38,8 @@ public IActionResult Get(int id) } [HttpGet("{id}/image")] - [AllowAnonymous] [Produces("image/png")] - //[RequiresPermissions(Permissions.SEE_PRODUCTS_AND_CATEGORIES)] + [RequiresPermissions(Permissions.SEE_PRODUCTS_AND_CATEGORIES)] public IActionResult GetImage(int id) { return File(this.productDao.ReadImage(id).Bytes, "image/png"); diff --git a/Service/Program.cs b/Service/Program.cs index a775762..2cebb33 100644 --- a/Service/Program.cs +++ b/Service/Program.cs @@ -111,7 +111,7 @@ app.UseAuthorization(); app.MapControllers(); -ServerInfo.Current.Version = "0.2.0.230525 (alpha/test)"; +ServerInfo.Current.Version = "0.2.1.2305261536 (alpha/test)"; Console.WriteLine(ServerInfo.Current); app.Run();