projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debug
[Pman.Core]
/
Lock.php
diff --git
a/Lock.php
b/Lock.php
index
b0e7ea9
..
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!!!!
@@
-77,7
+77,7
@@
class Pman_Core_Lock extends Pman
$this->jok("No lock exists"); // been deleted before.. probably ok..
}
$this->jok("No lock exists"); // been deleted before.. probably ok..
}
- if ($curlock->person_id != $this->authUser->id) {
+ if ($curlock->person_id != $this->authUser->id
&& empty($_REQUEST['force'])
) {
// this is an error conditon..
$this->jerr("Lock id is invalid");
}
// this is an error conditon..
$this->jerr("Lock id is invalid");
}