mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Add access control for media downloads
Introduced IAccesserToDownloadMedia and its implementation to enforce access checks when downloading media files. Updated MediaController to use the new accesser service and improved error handling and validation in upload/download actions. Refactored and moved MediaService to the Medias namespace, registered new services in DI, and added comprehensive tests for access logic. Also fixed GroupMembershipConfiguration to make InvitationId optional and performed minor test and namespace cleanups.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace Govor.Application.Interfaces.Medias;
|
||||
|
||||
public interface IAccesserToDownloadMedia
|
||||
{
|
||||
Task<bool> HasAccessAsync(Guid mediaFileId, Guid userId);
|
||||
}
|
||||
Reference in New Issue
Block a user