Convert api element history actions to versions resources
This commit is contained in:
parent
974e404a6e
commit
98af87d1cb
16 changed files with 175 additions and 134 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue