Declare api node relations as nested resources
This commit is contained in:
parent
6a50a5e871
commit
a6e614e44e
10 changed files with 112 additions and 50 deletions
|
@ -16,7 +16,7 @@ class ApiAbility
|
|||
can :read, Tracepoint
|
||||
can :read, User
|
||||
can :read, [Node, Way]
|
||||
can [:read, :relations_for_node, :relations_for_way, :relations_for_relation], Relation
|
||||
can [:read, :relations_for_way, :relations_for_relation], Relation
|
||||
can [:history, :read], [OldNode, OldWay, OldRelation]
|
||||
can :read, UserBlock
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue