mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Removed permission system from models
This commit is contained in:
@@ -11,20 +11,17 @@ class Orgform_model extends DB_Model
|
||||
$this->dbTable = 'bis.tbl_orgform';
|
||||
$this->pk = 'orgform_kurzbz';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns all the orgform except VBB and ZGS
|
||||
*/
|
||||
public function getOrgformLV()
|
||||
{
|
||||
// Checks rights
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
$query = "SELECT *
|
||||
FROM bis.tbl_orgform
|
||||
WHERE orgform_kurzbz NOT IN ('VBB', 'ZGS')
|
||||
ORDER BY orgform_kurzbz";
|
||||
|
||||
|
||||
return $this->execQuery($query);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user