Commit graph

7 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
6668240126
update fake text repository for user
include the user when rebuilding Text instances in find and
getAll, preserving the rule that lookup methods return new
instances rather than stored references.
2026-05-02 21:27:45 +03:00
189493b045
php cs fixer 2026-04-19 23:07:48 +03:00
0853aacdfb
implement getAll in fake text repo 2026-04-12 22:05:53 +03:00
424d46104b
fix test warning for undefined array key by using array_find 2026-02-21 21:09:08 +02:00
ba65f8fa42
impl find method in fake text repo 2026-02-20 12:02:00 +02:00
467e5288d7
fake test repo 2026-02-19 21:00:02 +02:00