5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 15:56:20 +00:00

fix: poder aceptar o rechazar invitaciones #15154

This commit is contained in:
f 2024-03-25 12:42:26 -03:00
parent 1128f04954
commit 316b192d1e
No known key found for this signature in database

View file

@ -36,8 +36,7 @@ class SiteUsuariePolicy
end
def accept_invitation?
su = site_usuarie
(usuarie? || invitade?) && su.usuarie.rol_for_site(su.site).temporal
!!site_usuarie.usuarie.rol_for_site(site_usuarie.site)&.temporal
end
def reject_invitation?