feat: Relaxed file upload authorization from 'Edit' to 'View' permission and updated the year input help text.
This commit is contained in:
@@ -189,7 +189,7 @@ namespace SZUAbsolventenverein.Module.HallOfFame.Services
|
||||
}
|
||||
public async Task<string> UploadFileAsync(Stream stream, string fileName, int ModuleId)
|
||||
{
|
||||
if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, ModuleId, PermissionNames.Edit))
|
||||
if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, ModuleId, PermissionNames.View))
|
||||
{
|
||||
var extension = Path.GetExtension(fileName).ToLower();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user