add archived at to accounts

This commit is contained in:
Pete Matsyburka
2024-04-28 10:27:44 +03:00
parent 1b2dec4c2a
commit bb613059de
6 changed files with 36 additions and 20 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class User < ApplicationRecord
end
def active_for_authentication?
super && !archived_at?
super && !archived_at? && !account.archived_at?
end
def remember_me