Added permission Preorderfront

This commit is contained in:
Frank Schubert
2023-03-08 15:39:05 +01:00
parent 9d02064aa2
commit 67dbee488d
8 changed files with 202 additions and 123 deletions
@@ -4,6 +4,7 @@ class WorkerPermission extends mfBaseModel {
public $isAdmin = false;
public $isTicketadmin = false;
public $isTechnician = false;
public $isPreorderfront = false;
public function loadByUserId($userid) {
$res = $this->db->select($this->table,"*","worker_id=$userid");
@@ -29,6 +30,9 @@ class WorkerPermission extends mfBaseModel {
if($this->technician == 'true') {
$this->isTechnician = true;
}
if($this->preorderfront == 'true') {
$this->isPreorderfront= true;
}
}
}