projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3dacd81
)
Better error reporting
author
Alan
<alan@roojs.com>
Fri, 8 Sep 2023 05:15:34 +0000
(13:15 +0800)
committer
Alan
<alan@roojs.com>
Fri, 8 Sep 2023 05:15:34 +0000
(13:15 +0800)
GroupRights.php
patch
|
blob
|
history
Signup.php
patch
|
blob
|
history
diff --git
a/GroupRights.php
b/GroupRights.php
index
6275f2c
..
0dbd455
100644
(file)
--- a/
GroupRights.php
+++ b/
GroupRights.php
@@
-12,7
+12,7
@@
class Pman_Admin_GroupRights 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') {
}
if ($au->company()->comptype !='OWNER') {
diff --git
a/Signup.php
b/Signup.php
index
4edf7ac
..
d06a711
100644
(file)
--- a/
Signup.php
+++ b/
Signup.php
@@
-8,7
+8,7
@@
class Pman_Admin_Signup 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));
}
$this->authUser = $au;
if ($au->company()->comptype != 'OWNER') {
}
$this->authUser = $au;
if ($au->company()->comptype != 'OWNER') {