OSDN Git Service

fix
[pettanr/pettanr.git] / lib / peta / item.rb
index 938437d..e379a1c 100644 (file)
@@ -120,7 +120,7 @@ module Peta
       opt.merge!(self.show_opt)
       item = self.find(item_id, opt)
       item.boosts 'read'
-      raise ActiveRecord::Forbidden unless item.visible?(operators)
+      raise ActiveRecord::Forbidden if item.visible?(operators) == false
       item
     end