if either fan access or musician access is public, expose rabl VRFS-1427

This commit is contained in:
Seth Call 2014-03-14 14:42:57 +00:00
parent 19f21236e4
commit 993afe1174
1 changed files with 1 additions and 2 deletions

View File

@ -338,10 +338,9 @@ module JamRuby
# Verifies that the specified user can see this music session
def can_see? user
if self.musician_access
if self.musician_access || self.fan_access
return true
else
# the creator can always see, and the invited users can see it too
return self.creator == user || self.invited_musicians.exists?(user)
end
end