18 require_once SQ_CORE_PACKAGE_PATH.
'/users/user/user.inc';
44 $this->
User($assetid);
75 public function delete($release_lock=TRUE)
79 if (parent::delete($release_lock)) {
81 $sql =
'SELECT lockid FROM '.SQ_TABLE_RUNNING_PREFIX.
'lock WHERE userid = \''.$this->
id.
'\'';
86 }
catch (Exception $e) {
87 throw new Exception(
'Unable to get lock info for backend user due to database error: '.$e->getMessage());
93 foreach($result as $key => $val) {
94 $lockid = $val[
'lockid'];
96 if (($err_msg = $GLOBALS[
'SQ_SYSTEM']->releaseLock($lockid)) !== TRUE) {
97 trigger_localised_error(
'SYS0109', E_USER_NOTICE, $lock_type, $asset->name, $err_msg);