set/right/api_key.rb in card-mod-api_key-0.11.4 vs set/right/api_key.rb in card-mod-api_key-0.11.5
- old
+ new
@@ -9,9 +9,10 @@
errors.add :content, t(:api_key_taken) if api_key_taken?
end
def api_key_taken?
return false unless (acct = Card::Auth.find_account_by_api_key content)
+
acct.id == left_id
end
def history?
false