projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a729db2
)
JavascriptError.php
author
Alan Knowles
<alan@roojs.com>
Wed, 9 Mar 2016 06:19:43 +0000
(14:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 9 Mar 2016 06:19:43 +0000
(14:19 +0800)
JavascriptError.php
patch
|
blob
|
history
diff --git
a/JavascriptError.php
b/JavascriptError.php
index
d0139ac
..
50b0fa8
100644
(file)
--- a/
JavascriptError.php
+++ b/
JavascriptError.php
@@
-6,7
+6,22
@@
class Pman_Core_JavascriptError extends Pman {
function getAuth()
{
- // authed users only...
+ parent::getAuth(); // load company!
+ $au = $this->getAuthUser();
+
+ if (!$au) {
+ $this->jerr("Not authenticated", array('authFailure' => true));
+ }
+ if (!$au->pid() ) { // not set up yet..
+ $this->jerr("Not authenticated", array('authFailure' => true));
+ }
+
+
+ $this->authUser = $au;
+ return true;
}
+
+
+
}