if either fan access or musician access is public, expose rabl VRFS-1427
This commit is contained in:
parent
19f21236e4
commit
993afe1174
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue