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:
parent
b880cdea36
commit
f8c50e6515
1 changed files with 5 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue