projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
9ef328a
)
Merge branch 'master' of http://git.roojs.com/Pman.Core
author
alan
<alan@member2016.hhyc.local>
Mon, 6 Jun 2016 09:00:59 +0000
(17:00 +0800)
committer
alan
<alan@member2016.hhyc.local>
Mon, 6 Jun 2016 09:00:59 +0000
(17:00 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
8f01715
..
44c92ea
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-271,7
+271,7
@@
class Pman_Core_Images extends Pman
}
function validateSize()
{
- if (($this->authUser &&
$this->authUser->company_id
&& $this->authUser->company()->comptype=='OWNER') || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
+ if (($this->authUser &&
!empty($this->authUser->company_id)
&& $this->authUser->company()->comptype=='OWNER') || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
return true;
}