projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2992712
)
Images.php
author
Edward
<edward@roojs.com>
Mon, 30 Jul 2018 03:46:32 +0000
(11:46 +0800)
committer
Edward
<edward@roojs.com>
Mon, 30 Jul 2018 03:46:32 +0000
(11:46 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
e6da138
..
5a8bed3
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-181,7
+181,7
@@
class Pman_Core_Images extends Pman
$img = DB_DataObjecT::factory('Images');
if (!$id || !$img->get($id)) {
$img = DB_DataObjecT::factory('Images');
if (!$id || !$img->get($id)) {
-
$this->imgErr("image has been removed or deleted.",$s);
+ $this->imgErr("image has been removed or deleted.",$s);
}
if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) {
}
if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) {
@@
-203,11
+203,10
@@
class Pman_Core_Images extends Pman
if(!$this->hasPermission($img)){
if(!$this->hasPermission($img)){
- print_r('no permission');exit;
$this->imgErr("access to this image/file has been denied.",$s);
}
$this->imgErr("access to this image/file has been denied.",$s);
}
- print_R($img);exit;
+
$this->serve($img);
exit;
}
$this->serve($img);
exit;
}