From d07ac84711325ae1720debee47dcb43341a3cb47 Mon Sep 17 00:00:00 2001 From: henning mueller Date: Tue, 25 Feb 2014 12:23:43 +0100 Subject: [PATCH] Fixed bug which became transparent with rails4 deprecation warning. --- app/models/mailbox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mailbox.rb b/app/models/mailbox.rb index 8fde7d6..0184486 100644 --- a/app/models/mailbox.rb +++ b/app/models/mailbox.rb @@ -63,7 +63,7 @@ def manager? # Checks if Mailbox has permissions on associated domain (for spam Aliases). def manager_of_address_domain? - Domain.managable(self).all.include? domain + Domain.managable(self).where(id: domain.id).any? end # Salt of the password hash.