projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #5791 - Search Criteria on Orders / Columns on orders
[Pman.Core]
/
JavascriptError.php
diff --git
a/JavascriptError.php
b/JavascriptError.php
index
d7aa56e
..
11f4deb
100644
(file)
--- a/
JavascriptError.php
+++ b/
JavascriptError.php
@@
-11,12
+11,9
@@
class Pman_Core_JavascriptError extends Pman {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
parent::getAuth(); // load company!
$au = $this->getAuthUser();
- if (!$au) {
+ if (!$au
|| !$au->pid()
) {
- $this->jerr("Not authenticated", array('authFailure' => true));
- }
- if (!$au->pid() ) { // not set up yet..
- $this->jerr("Not authenticated", array('authFailure' => true));
+ die("authenticated Users only");
}
}
@@
-24,12
+21,12
@@
class Pman_Core_JavascriptError extends Pman {
return true;
}
return true;
}
- function get()
+ function get(
$v, $opts=array()
)
{
die("invalid url");
}
{
die("invalid url");
}
- function post()
+ function post(
$v
)
{
$this->addEvent("JSERROR", false,$_REQUEST['msg']);
{
$this->addEvent("JSERROR", false,$_REQUEST['msg']);