Convert api element history actions to versions resources

This commit is contained in:
Anton Khorev 2025-02-05 17:39:26 +03:00
parent 974e404a6e
commit 98af87d1cb
16 changed files with 175 additions and 134 deletions

View file

@ -15,8 +15,7 @@ class ApiAbility
can [:read, :download], Changeset
can :read, Tracepoint
can :read, User
can :read, [Node, Way, Relation]
can [:history, :read], [OldNode, OldWay, OldRelation]
can :read, [Node, Way, Relation, OldNode, OldWay, OldRelation]
can :read, UserBlock
if user&.active?