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
t#30102:update i18n op rp au ar gc gp pc
[pettanr/pettanr.git]
/
app
/
models
/
original_picture.rb
diff --git
a/app/models/original_picture.rb
b/app/models/original_picture.rb
index
10bb097
..
9a435ee
100644
(file)
--- a/
app/models/original_picture.rb
+++ b/
app/models/original_picture.rb
@@
-31,6
+31,7
@@
class OriginalPicture < ActiveRecord::Base
end
def visible? ar
+ return true if ar.is_a?(Admin)
self.own?(ar)
end