Skip to content

Commit

Permalink
added share.everyone check for share permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhbir-singh committed Aug 11, 2018
1 parent 14680ab commit 9c35bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/friendings/_share_permissions.slim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
= simple_remote_checkbox :id => "share_access_id_#{share['id']}",
:css_class => 'share_checkbox',
:url => toggle_readonly_share_path(:id => share['id']),
:checked => share.users_with_share_access.include?(local_user)
:checked => (share.users_with_share_access.include?(local_user) or share.everyone)

td.align-middle
= form_tag friendings_engine.toggle_share_access_path,\
Expand All @@ -39,4 +39,4 @@
= simple_remote_checkbox :id => "share_writable_id_#{share['id']}",
:css_class => 'share_checkbox',
:url => toggle_readonly_share_path(:id => share['id']),
:checked => share.users_with_write_access.include?(local_user)
:checked => (share.users_with_write_access.include?(local_user) or share.everyone)

0 comments on commit 9c35bc2

Please sign in to comment.