mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
38 lines
876 B
PHP
38 lines
876 B
PHP
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class NeueNachricht extends Auth_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
$permissions = [];
|
|
$router = load_class('Router');
|
|
$permissions[$router->method] = ['vertrag/mitarbeiter:r'];
|
|
parent::__construct($permissions);
|
|
|
|
// Load Libraries
|
|
$this->load->library('VariableLib', ['uid' => getAuthUID()]);
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function _remap()
|
|
{
|
|
$typeid = $this->input->post('typeid');
|
|
$ids = ($this->input->post('ids') && strpos($this->input->post('ids'), ','))
|
|
? explode(',', $this->input->post('ids'))
|
|
: $this->input->post('ids');
|
|
|
|
//now working
|
|
$this->load->view('Nachrichten', [
|
|
'permissions' => [
|
|
'assistenz_schreibrechte' => $this->permissionlib->isBerechtigt('assistenz','suid'),
|
|
],
|
|
'ids' => $ids,
|
|
'typeid' => $typeid
|
|
]);
|
|
}
|
|
}
|