X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Lock.php;h=3f1494b63206c86fee6e82152e370f680097b763;hb=69a171812170924b64cb06e99b41fe1a0fa01c17;hp=53c88ee7362ee4ee77135758a0a0944d0f231b19;hpb=adaf207cf7aebf8f85f16951471785a9d1f7b130;p=Pman.Core diff --git a/Lock.php b/Lock.php index 53c88ee7..3f1494b6 100644 --- a/Lock.php +++ b/Lock.php @@ -48,7 +48,7 @@ class Pman_Core_Lock extends Pman return true; } - function get($action) + function get($action, $opts=array()) { // should we allow url links to lock things??? // only for debugging?? @@ -77,7 +77,7 @@ class Pman_Core_Lock extends Pman $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"); }