mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-07 23:29:28 +00:00
5087826891
- Renamed method chkRights to _isEntitled in model DB_Model - Updated models where it was needed
25 lines
536 B
PHP
25 lines
536 B
PHP
<?php
|
|
|
|
class Vorlage_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'public.tbl_vorlage';
|
|
$this->pk = 'vorlage_kurzbz';
|
|
}
|
|
|
|
public function getMimeTypes()
|
|
{
|
|
// Checks rights
|
|
if (($isEntitled = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
|
return $isEntitled;
|
|
|
|
$query = 'SELECT DISTINCT mimetype FROM public.tbl_vorlage ORDER BY mimetype';
|
|
|
|
return $this->execQuery($query);
|
|
}
|
|
} |