Create api changeset comment visibility resource
This commit is contained in:
parent
457cc99349
commit
84a0c76ab2
13 changed files with 356 additions and 299 deletions
|
@ -40,7 +40,7 @@ class ApiAbility
|
|||
end
|
||||
|
||||
if user.moderator?
|
||||
can [:destroy, :restore], ChangesetComment if scopes.include?("write_changeset_comments")
|
||||
can [:create, :destroy], :changeset_comment_visibility if scopes.include?("write_changeset_comments")
|
||||
|
||||
can :destroy, Note if scopes.include?("write_notes")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue