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