Commit graph

4 commits

Author SHA1 Message Date
acdf703d80
scope text endpoints by ownership
TextRepository gains findByUser; JsonTextRepository and the
fake implement filtering by stored userId. TextController
splits the list endpoint into getMyTexts (own) and
getAllTexts (admin), and getText now requires the session
user, returning 403 to non-owners while admins bypass.
2026-05-02 21:42:51 +03:00
4635fef3c7
persist user id in json text repository
store userId in the json record and rehydrate the User via
UserRepository. throws DomainException if the referenced user
no longer exists.
2026-05-02 21:27:40 +03:00
189493b045
php cs fixer 2026-04-19 23:07:48 +03:00
e9195fe991
implement text repo for json files 2026-04-12 22:05:10 +03:00