5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 17:06:22 +00:00

no poder invitar usuaries a menos que el sitio lo soporte

This commit is contained in:
f 2019-09-25 19:40:08 -03:00
parent b880cdea36
commit f8c50e6515
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -46,8 +46,12 @@ class SiteUsuariePolicy
private
def invitades?
site_usuarie.site.invitades?
end
def usuarie?
site_usuarie.site.usuarie? usuarie
invitades? && site_usuarie.site.usuarie?(usuarie)
end
def invitade?