mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 09:56:21 +00:00
no poder invitar usuaries a menos que el sitio lo soporte
This commit is contained in:
parent
b880cdea36
commit
f8c50e6515
1 changed files with 5 additions and 1 deletions
|
@ -46,8 +46,12 @@ class SiteUsuariePolicy
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def invitades?
|
||||||
|
site_usuarie.site.invitades?
|
||||||
|
end
|
||||||
|
|
||||||
def usuarie?
|
def usuarie?
|
||||||
site_usuarie.site.usuarie? usuarie
|
invitades? && site_usuarie.site.usuarie?(usuarie)
|
||||||
end
|
end
|
||||||
|
|
||||||
def invitade?
|
def invitade?
|
||||||
|
|
Loading…
Reference in a new issue