projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce9e704
)
DatabaseColumns.php
author
Alan Knowles
<alan@roojs.com>
Thu, 22 May 2014 07:37:41 +0000
(15:37 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 May 2014 07:37:41 +0000
(15:37 +0800)
DatabaseColumns.php
patch
|
blob
|
history
diff --git
a/DatabaseColumns.php
b/DatabaseColumns.php
index
78c5e3b
..
3810c1d
100644
(file)
--- a/
DatabaseColumns.php
+++ b/
DatabaseColumns.php
@@
-3,5
+3,20
@@
class Pman_Core_DatabaseColumns extends Pman {
-
+ function getAuth()
+ {
+ 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;
+ }
}
\ No newline at end of file