fix orbit core to adopt current user behavior
This commit is contained in:
parent
aa114568c4
commit
e05cf2a2d6
|
@ -32,7 +32,11 @@ module OrbitCoreLib
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_object_auth_by_title(title)
|
def get_object_auth_by_title(title)
|
||||||
self.object_auths.where({title: title }).first
|
oa = self.object_auths.where({title: title }).first
|
||||||
|
if oa.nil? && (self.class::ObjectAuthTitlesOptions.include? title)
|
||||||
|
oa = self.object_auths.build title: title
|
||||||
|
end
|
||||||
|
oa
|
||||||
end
|
end
|
||||||
|
|
||||||
def authed_users(title=nil)
|
def authed_users(title=nil)
|
||||||
|
|
Reference in New Issue