OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix
[pettanr/pettanr.git]
/
lib
/
peta
/
item.rb
diff --git
a/lib/peta/item.rb
b/lib/peta/item.rb
index
938437d
..
e379a1c
100644
(file)
--- a/
lib/peta/item.rb
+++ b/
lib/peta/item.rb
@@
-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