fix orbit core to adopt current user behavior

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-05-22 14:59:54 +08:00
1 parent 70b5654b35
commit 361722f252
1 file changed
+5 -1
+5 -1
View File
@@ -32,7 +32,11 @@ module OrbitCoreLib
end
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
def authed_users(title=nil)