]> cat aescling's git repositories - mastodon.git/commitdiff
Able to deactivate invites if they aren't expired (#7163)
authorJennifer Kruse <jenkr55@gmail.com>
Tue, 17 Apr 2018 11:52:08 +0000 (06:52 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 17 Apr 2018 11:52:08 +0000 (13:52 +0200)
app/views/invites/_invite.html.haml

index 81d67eb7db161dfb032657ebeaf381a234b6aa2b..1c7ec311d244dbba902f5429c857fda51b85bd82 100644 (file)
@@ -13,5 +13,5 @@
           = l invite.expires_at
   %td= table_link_to 'link', public_invite_url(invite_code: invite.code), public_invite_url(invite_code: invite.code)
   %td
-    - if invite.expired? && policy(invite).destroy?
+    - if !invite.expired? && policy(invite).destroy?
       = table_link_to 'times', t('invites.delete'), invite_path(invite), method: :delete