5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 05:31:42 +00:00

fix: solo invitar una vez

This commit is contained in:
f 2023-03-23 15:47:06 -03:00
parent 732db666c7
commit 1fa37b20e1
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
%h1= site.title
%p= site.description
- if @resource.created_by_invite?
- if @resource.created_by_invite? && !@resource.invitation_accepted?
%p= link_to t('devise.mailer.invitation_instructions.accept'),
accept_invitation_url(@resource, invitation_token: @token)

View file

@ -9,7 +9,7 @@
\
= site.description
\
- if @resource.created_by_invite?
- if @resource.created_by_invite? && !@resource.invitation_accepted?
= accept_invitation_url(@resource, invitation_token: @token)
\
- if @resource.invitation_due_at