We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9862a2f commit 2041870Copy full SHA for 2041870
lib/msf/core/db_manager/cred.rb
@@ -2,7 +2,7 @@ module Msf::DBManager::Cred
2
# This methods returns a list of all credentials in the database
3
def creds(wspace=workspace)
4
::ActiveRecord::Base.connection_pool.with_connection {
5
- Mdm::Cred.includes({:service => :host}).where("hosts.workspace_id = ?", wspace.id)
+ Mdm::Cred.where("hosts.workspace_id = ?", wspace.id).joins(:service => :host)
6
}
7
end
8
0 commit comments