projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38d402b
)
Better error reporting
author
Alan
<alan@roojs.com>
Fri, 8 Sep 2023 05:11:59 +0000
(13:11 +0800)
committer
Alan
<alan@roojs.com>
Fri, 8 Sep 2023 05:11:59 +0000
(13:11 +0800)
DatabaseColumns.php
patch
|
blob
|
history
GroupCountries.php
patch
|
blob
|
history
GroupMembers.php
patch
|
blob
|
history
I18n.php
patch
|
blob
|
history
Lock.php
patch
|
blob
|
history
NotifyAction.php
patch
|
blob
|
history
RefreshDatabaseCache.php
patch
|
blob
|
history
RunGenerator.php
patch
|
blob
|
history
SendIntro.php
patch
|
blob
|
history
UpdateDatabase.php
patch
|
blob
|
history
UploadProgress.php
patch
|
blob
|
history
diff --git
a/DatabaseColumns.php
b/DatabaseColumns.php
index
fd674a3
..
703b1fa
100644
(file)
--- a/
DatabaseColumns.php
+++ b/
DatabaseColumns.php
@@
-11,10
+11,10
@@
class Pman_Core_DatabaseColumns extends Pman {
$au = $this->getAuthUser();
if (!$au) {
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
if (!$au->pid() ) { // not set up yet..
}
if (!$au->pid() ) { // not set up yet..
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
}
diff --git
a/GroupCountries.php
b/GroupCountries.php
index
e694d8d
..
fdd8fca
100644
(file)
--- a/
GroupCountries.php
+++ b/
GroupCountries.php
@@
-15,7
+15,7
@@
class Pman_Core_GroupCountries extends Pman
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
if ($au->company()->comptype != 'OWNER') {
$this->jerr("Permission Denied" );
}
if ($au->company()->comptype != 'OWNER') {
$this->jerr("Permission Denied" );
diff --git
a/GroupMembers.php
b/GroupMembers.php
index
f501042
..
ce061d7
100644
(file)
--- a/
GroupMembers.php
+++ b/
GroupMembers.php
@@
-15,7
+15,7
@@
class Pman_Core_GroupMembers extends Pman
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
if ($au->company()->comptype != 'OWNER') {
$this->jerr("Permission Denied" );
}
if ($au->company()->comptype != 'OWNER') {
$this->jerr("Permission Denied" );
diff --git
a/I18n.php
b/I18n.php
index
9a1292d
..
bab0b2d
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-62,7
+62,7
@@
class Pman_Core_I18n extends Pman
//return true;
$au = $this->getAuthUser();
//if (!$au) {
//return true;
$au = $this->getAuthUser();
//if (!$au) {
- // $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ // $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
//}
$this->authUser = $au;
//}
$this->authUser = $au;
diff --git
a/Lock.php
b/Lock.php
index
3f1494b
..
661381f
100644
(file)
--- a/
Lock.php
+++ b/
Lock.php
@@
-40,7
+40,7
@@
class Pman_Core_Lock extends Pman
{
$au = $this->getAuthUser();
if (!$au) {
{
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
// check that it's a supplier!!!!
}
$this->authUser = $au;
// check that it's a supplier!!!!
diff --git
a/NotifyAction.php
b/NotifyAction.php
index
e3b9af5
..
968eace
100644
(file)
--- a/
NotifyAction.php
+++ b/
NotifyAction.php
@@
-16,7
+16,7
@@
class Pman_Core_NotifyAction extends Pman
{
$au = $this->getAuthUser();
if (!$au) {
{
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
// workflow only applicable to owner company..
if ($au->company()->comptype != 'OWNER') {
}
// workflow only applicable to owner company..
if ($au->company()->comptype != 'OWNER') {
diff --git
a/RefreshDatabaseCache.php
b/RefreshDatabaseCache.php
index
2994e1b
..
d574edd
100644
(file)
--- a/
RefreshDatabaseCache.php
+++ b/
RefreshDatabaseCache.php
@@
-29,7
+29,7
@@
class Pman_Core_RefreshDatabaseCache extends Pman
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au || $au->company()->comptype != 'OWNER') {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au || $au->company()->comptype != 'OWNER') {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
return true;
}
$this->authUser = $au;
return true;
diff --git
a/RunGenerator.php
b/RunGenerator.php
index
3a4516a
..
3911255
100644
(file)
--- a/
RunGenerator.php
+++ b/
RunGenerator.php
@@
-56,7
+56,7
@@
class Pman_Core_RunGenerator extends Pman
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au || $au->company()->comptype != 'OWNER') {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au || $au->company()->comptype != 'OWNER') {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
return true;
}
$this->authUser = $au;
return true;
diff --git
a/SendIntro.php
b/SendIntro.php
index
c3187f1
..
6108d49
100644
(file)
--- a/
SendIntro.php
+++ b/
SendIntro.php
@@
-28,7
+28,7
@@
class Pman_Core_SendIntro extends Pman
$au = $this->getAuthUser();
if (!$au) {
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
// check that it's a supplier!!!!
}
$this->authUser = $au;
// check that it's a supplier!!!!
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
f7ac303
..
876e201
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-177,7
+177,7
@@
class Pman_Core_UpdateDatabase extends Pman
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au || $au->company()->comptype != 'OWNER') {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au || $au->company()->comptype != 'OWNER') {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
return true;
}
$this->authUser = $au;
return true;
diff --git
a/UploadProgress.php
b/UploadProgress.php
index
7616fbf
..
a0b144d
100644
(file)
--- a/
UploadProgress.php
+++ b/
UploadProgress.php
@@
-7,7
+7,7
@@
class Pman_Core_UploadProgress extends Pman
$au = $this->getAuthUser();
if (!$au) {
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr
(
"Not authenticated", array('authFailure' => true));
+ $this->jerr
or("LOGIN-NOAUTH",
"Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
// check that it's a supplier!!!!
}
$this->authUser = $au;
// check that it's a supplier!!!!