lib/ncmb/object.rb in ncmb-ruby-client-0.1.6 vs lib/ncmb/object.rb in ncmb-ruby-client-0.1.7

- old
+ new

@@ -43,10 +43,10 @@ def [](key) @fields[key] end def deletable? - if self.acl['*'.to_sym][:write] == true + if self.acl.fields[:*][:write] == true return true end return false unless NCMB.CurrentUser return false unless self.acl[NCMB.CurrentUser.objectId.to_sym] return false unless self.acl[NCMB.CurrentUser.objectId.to_sym][:write]