'on_table' => $_REQUEST['on_table']
));
+ $curlock_ex = clone($curlock);
+ $curlock_ex->whereAdd('person_id != '. $this->authUser->id);
- $nlocks = $curlock->count() ;
+
+ $nlocks = $curlock_ex->count() ;
if ($nlocks && empty($_REQUEST['force'])) {
// DB_DataObjecT::debugLevel(1);
$ar = $curlock->fetchAll('person_id', 'created');
$this->jok(array_values($ret));
}
+ $nlocks = $curlock->count();
if ($nlocks) {
// trash all the locks..
$curlock->find();