ip addresses: fix reference to CurrentUser inside visible.
This commit is contained in:
@@ -8,7 +8,7 @@ class IpAddress < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.visible(user)
|
||||
CurrentUser.is_admin? ? all : where.not(model_type: "Dmail")
|
||||
user.is_admin? ? all : where.not(model_type: "Dmail")
|
||||
end
|
||||
|
||||
def self.search(params)
|
||||
|
||||
Reference in New Issue
Block a user