feat: Relaxed file upload authorization from 'Edit' to 'View' permission and updated the year input help text.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace SZUAbsolventenverein.Module.HallOfFame.Controllers
|
||||
}
|
||||
}
|
||||
[HttpPost("upload")]
|
||||
[Authorize(Policy = PolicyNames.EditModule)]
|
||||
[Authorize(Policy = PolicyNames.ViewModule)]
|
||||
public async Task<IActionResult> Upload(IFormFile file)
|
||||
{
|
||||
if (file == null || file.Length == 0) return BadRequest("Keine Datei ausgewählt.");
|
||||
|
||||
Reference in New Issue
Block a user