mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 02:16: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
|
end
|
||||||
|
|
||||||
def accept_invitation?
|
def accept_invitation?
|
||||||
su = site_usuarie
|
!!site_usuarie.usuarie.rol_for_site(site_usuarie.site)&.temporal
|
||||||
(usuarie? || invitade?) && su.usuarie.rol_for_site(su.site).temporal
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def reject_invitation?
|
def reject_invitation?
|
||||||
|
|
Loading…
Reference in a new issue