projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb9207
)
Fix #5684 - Car Registration
author
Edward
<edward@roojs.com>
Wed, 13 Feb 2019 03:54:01 +0000
(11:54 +0800)
committer
Edward
<edward@roojs.com>
Wed, 13 Feb 2019 03:54:01 +0000
(11:54 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
2e7c981
..
68cc362
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-176,8
+176,6
@@
class Pman_Core_Images extends Pman
}
-
-
$img = DB_DataObjecT::factory('Images');
if (!$id || !$img->get($id)) {
@@
-196,15
+194,13
@@
class Pman_Core_Images extends Pman
if ($comp->comptype != 'OWNER') {
$this->imgErr("not-owner-company",$s);
}
+
return $this->serve($img);
-
}
-
if(!$this->hasPermission($img)){
$this->imgErr("access to this image/file has been denied.",$s);
-
}
$this->serve($img);