mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 22:31:41 +00:00
si el rol no es temporal la usuaria ya aceptó la invitación
This commit is contained in:
parent
d83b32d4fd
commit
b113432032
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class UsuariesController < ApplicationController
|
|||
@site = find_site
|
||||
|
||||
# Le usuarie ya aceptó la invitación
|
||||
if @site.usuarie?(current_usuarie) || @site.invitade?(current_usuarie)
|
||||
unless current_usuarie.rol_for_site(@site)&.temporal
|
||||
redirect_to sites_path
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue