mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:26:21 +00:00
fix: poder aceptar o rechazar invitaciones #15154
This commit is contained in:
parent
1128f04954
commit
316b192d1e
1 changed files with 1 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue