mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
berechtigungen angepasst
This commit is contained in:
@@ -125,9 +125,9 @@ class InfoCenter extends Auth_Controller
|
|||||||
'zgvStatusUpdate' => 'lehre/zgvpruefung:rw',
|
'zgvStatusUpdate' => 'lehre/zgvpruefung:rw',
|
||||||
'saveAbsage' => 'infocenter:rw',
|
'saveAbsage' => 'infocenter:rw',
|
||||||
'saveFreigabe' => 'infocenter:rw',
|
'saveFreigabe' => 'infocenter:rw',
|
||||||
'getNotiz' => 'infocenter:r',
|
'getNotiz' => array('infocenter:r', 'lehre/zgvpruefung:r'),
|
||||||
'saveNotiz' => array('infocenter:rw', 'lehre/zgvpruefung:rw'),
|
'saveNotiz' => array('infocenter:rw', 'lehre/zgvpruefung:rw'),
|
||||||
'updateNotiz' => 'infocenter:rw',
|
'updateNotiz' => array('infocenter:rw', 'lehre/zgvpruefung:rw'),
|
||||||
'reloadZgvPruefungen' => 'infocenter:r',
|
'reloadZgvPruefungen' => 'infocenter:r',
|
||||||
'reloadMessages' => 'infocenter:r',
|
'reloadMessages' => 'infocenter:r',
|
||||||
'reloadDoks' => 'infocenter:r',
|
'reloadDoks' => 'infocenter:r',
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|||||||
|
|
||||||
class ZGVUeberpruefung extends Auth_Controller
|
class ZGVUeberpruefung extends Auth_Controller
|
||||||
{
|
{
|
||||||
|
const BERECHTIGUNG_KURZBZ = 'lehre/zgvpruefung';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
@@ -12,14 +14,15 @@ class ZGVUeberpruefung extends Auth_Controller
|
|||||||
// Set required permissions
|
// Set required permissions
|
||||||
parent::__construct(
|
parent::__construct(
|
||||||
array(
|
array(
|
||||||
'index' => 'lehre/zgvpruefung:r',
|
'index' => self::BERECHTIGUNG_KURZBZ.':r',
|
||||||
'getZgvStatusByPrestudent' => 'lehre/zgvpruefung:r'
|
'getZgvStatusByPrestudent' => self::BERECHTIGUNG_KURZBZ.':r'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->load->model('crm/ZGVPruefungStatus_model', 'ZGVPruefungStatusModel');
|
$this->load->model('crm/ZGVPruefungStatus_model', 'ZGVPruefungStatusModel');
|
||||||
$this->load->model('crm/ZGVPruefung_model', 'ZGVPruefungModel');
|
$this->load->model('crm/ZGVPruefung_model', 'ZGVPruefungModel');
|
||||||
|
|
||||||
$this->load->library('WidgetLib');
|
$this->load->library('WidgetLib');
|
||||||
|
$this->load->library('PermissionLib');
|
||||||
|
|
||||||
$this->setControllerId();
|
$this->setControllerId();
|
||||||
$this->loadPhrases(
|
$this->loadPhrases(
|
||||||
@@ -31,7 +34,14 @@ class ZGVUeberpruefung extends Auth_Controller
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->load->view('system/infocenter/infocenterZgvUeberpruefung.php');
|
$oeKurzbz = $this->permissionlib->getOE_isEntitledFor(self::BERECHTIGUNG_KURZBZ);
|
||||||
|
|
||||||
|
if (!$oeKurzbz)
|
||||||
|
show_error('Keine Berechtigung.');
|
||||||
|
|
||||||
|
$data['oeKurz'] = $oeKurzbz;
|
||||||
|
|
||||||
|
$this->load->view('system/infocenter/infocenterZgvUeberpruefung.php', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getZgvStatusByPrestudent()
|
public function getZgvStatusByPrestudent()
|
||||||
|
|||||||
@@ -4,11 +4,6 @@ $APP = '\'infocenter\'';
|
|||||||
$INTERESSENT_STATUS = '\'Interessent\'';
|
$INTERESSENT_STATUS = '\'Interessent\'';
|
||||||
$TAETIGKEIT_KURZBZ = '\'bewerbung\', \'kommunikation\'';
|
$TAETIGKEIT_KURZBZ = '\'bewerbung\', \'kommunikation\'';
|
||||||
$LOGDATA_NAME = '\'Login with code\', \'Login with user\', \'New application\'';
|
$LOGDATA_NAME = '\'Login with code\', \'Login with user\', \'New application\'';
|
||||||
|
|
||||||
$uid = get_uid();
|
|
||||||
$rechte = new benutzerberechtigung();
|
|
||||||
$rechte->getBerechtigungen($uid);
|
|
||||||
$oeKurz = $rechte->getOEkurzbz('lehre/zgvpruefung');
|
|
||||||
$oeKurz = '\''. implode('\',\'', $oeKurz) . '\'';
|
$oeKurz = '\''. implode('\',\'', $oeKurz) . '\'';
|
||||||
|
|
||||||
$query = '
|
$query = '
|
||||||
|
|||||||
Reference in New Issue
Block a user