Create node version redaction resource
This commit is contained in:
parent
84c4ed3fa8
commit
984dd624dd
5 changed files with 187 additions and 131 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue