projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RefreshDatabaseCache.php
[Pman.Core]
/
RefreshDatabaseCache.php
diff --git
a/RefreshDatabaseCache.php
b/RefreshDatabaseCache.php
index
836c003
..
3f3ca91
100644
(file)
--- a/
RefreshDatabaseCache.php
+++ b/
RefreshDatabaseCache.php
@@
-22,7
+22,15
@@
class Pman_Core_RefreshDatabaseCache extends Pman
$this->cli = true;
return true;
}
$this->cli = true;
return true;
}
- die("cli only");
+ parent::getAuth(); // load company!
+ $au = $this->getAuthUser();
+ if (!$au || $au->company()->comptype != 'OWNER') {
+ $this->jerr("Not authenticated", array('authFailure' => true));
+ }
+ $this->authUser = $au;
+ return true;
+
+
}
function get($args, $opts)
}
function get($args, $opts)