Ignore:
Timestamp:
06/23/26 15:20:39 (12 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
0b502c2
Parents:
d300631
Message:

Fixes for authentication and auhtorization\

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Application/Story/Commands/UpdateHandler.cs

    rd300631 rb373fea  
    2222                return new UpdateResponse(false);
    2323
     24            if (story.UserId != request.CallerId)
     25                throw new UnauthorizedAccessException("You do not own this story.");
     26
    2427            story.MatureContent = request.MatureContent;
    2528            story.ShortDescription = request.ShortDescription;
Note: See TracChangeset for help on using the changeset viewer.