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 anything
[pettanr/pettanr.git]
/
lib
/
peta
/
content.rb
diff --git
a/lib/peta/content.rb
b/lib/peta/content.rb
index
1fdc473
..
9c9dd80
100644
(file)
--- a/
lib/peta/content.rb
+++ b/
lib/peta/content.rb
@@
-70,9
+70,10
@@
module Peta
self.class.owner_model ? self.__send__(self.class.owner_model.item_name) : self
end
+ # super return if my item
def visible? operators
super
- return
true
if owner_model.own?(operators)
+ return
nil
if owner_model.own?(operators)
true
end