Skip to content

Commit

Permalink
Fix controlling notifications with add_collaboration (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewendland23 authored and xhocquet committed May 13, 2019
1 parent 7681398 commit 4081cc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/boxr/collaborations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def folder_collaborations(folder, fields: [])
def add_collaboration(folder, accessible_by, role, fields: [], notify: nil)
folder_id = ensure_id(folder)
query = build_fields_query(fields, COLLABORATION_FIELDS_QUERY)
query[:notify] = :notify unless notify.nil?
query[:notify] = notify unless notify.nil?

attributes = {item: {id: folder_id, type: :folder}}
attributes[:accessible_by] = accessible_by
Expand Down Expand Up @@ -79,4 +79,4 @@ def validate_role(role)
role
end
end
end
end
2 changes: 1 addition & 1 deletion lib/boxr/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Boxr
VERSION = "1.5.1"
VERSION = "1.6.0"
end

0 comments on commit 4081cc0

Please sign in to comment.