Add base old element redactions controller
This commit is contained in:
parent
d91a7cbf97
commit
84c4ed3fa8
2 changed files with 32 additions and 0 deletions
|
@ -45,6 +45,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 [:create, :destroy], :element_version_redaction if user.terms_agreed? && scopes.include?("write_redactions")
|
||||
|
||||
can :create, UserBlock if scopes.include?("write_blocks")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue