Create node version redaction resource

This commit is contained in:
Anton Khorev 2025-02-11 04:33:27 +03:00
parent 84c4ed3fa8
commit 984dd624dd
5 changed files with 187 additions and 131 deletions

View file

@ -44,7 +44,7 @@ class ApiAbility
can :destroy, Note if scopes.include?("write_notes")
can :redact, [OldNode, OldWay, OldRelation] if user.terms_agreed? && scopes.include?("write_redactions")
can :redact, [OldWay, OldRelation] if user.terms_agreed? && scopes.include?("write_redactions")
can [:create, :destroy], :element_version_redaction if user.terms_agreed? && scopes.include?("write_redactions")
can :create, UserBlock if scopes.include?("write_blocks")