projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6695418
)
Images.php
author
Edward
<edward@roojs.com>
Mon, 15 Dec 2014 09:02:20 +0000
(17:02 +0800)
committer
Edward
<edward@roojs.com>
Mon, 15 Dec 2014 09:02:20 +0000
(17:02 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
b10cec2
..
63ddce3
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-255,8
+255,7
@@
class Pman_Core_Images extends Pman
}
function validateSize()
{
- print_r($_SERVER['SERVER_ADDR']);exit;
- if ($this->authUser && $this->authUser->company_id && $this->authUser->company()->comptype=='OWNER') {
+ if (($this->authUser && $this->authUser->company_id && $this->authUser->company()->comptype=='OWNER') || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
return true;
}