Skip to content

Commit

Permalink
add in &&
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrick Rogers committed May 23, 2016
1 parent 9630176 commit 9e7223a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def playlist_items
can? :manage, playlist_item.playlist
end
can :read, PlaylistItem do |playlist_item|
can? :read, playlist_item.playlist
can? :read, playlist_item.annotation.master_file
(can? :read, playlist_item.playlist) &&
(can? :read, playlist_item.annotation.master_file)
end
end
end
Expand Down

0 comments on commit 9e7223a

Please sign in to comment.