verfasser nur noch readonly - wird im backend gesetzt

This commit is contained in:
ma0048
2025-07-21 15:29:57 +02:00
parent 8925692dd4
commit 4a8868a709
12 changed files with 114 additions and 168 deletions
@@ -29,7 +29,7 @@ class NotizAnrechnung extends Notiz_Controller
{
if($typeId != "anrechnung_id")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -37,8 +37,8 @@ class NotizAnrechnung extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -29,15 +29,15 @@ class NotizBestellung extends Notiz_Controller
{
if($typeId != "bestellung_id")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
if(!$this->permissionlib->isBerechtigt('admin', 'suid') && !$this->permissionlib->isBerechtigt('assistenz', 'suid'))
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -29,7 +29,7 @@ class NotizLehreinheit extends Notiz_Controller
{
if($typeId != "lehreinheit_id")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -37,8 +37,8 @@ class NotizLehreinheit extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -29,7 +29,7 @@ class NotizMitarbeiter extends Notiz_Controller
{
if($typeId != "mitarbeiter_uid")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -37,8 +37,8 @@ class NotizMitarbeiter extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -25,17 +25,17 @@ class NotizPerson extends Notiz_Controller
{
if($typeId != "person_id")
{
return $this->terminateWithError($this->p->t('ui', 'error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui', 'error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
if (!$this->permissionlib->isBerechtigt('admin', 'suid') && !$this->permissionlib->isBerechtigt('assistenz', 'suid'))
{
$result = $this->p->t('lehre', 'error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->outputJsonSuccess(true);
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
public function loadDokumente()
@@ -29,7 +29,7 @@ class NotizPrestudent extends Notiz_Controller
{
if($typeId != "prestudent_id")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -37,8 +37,8 @@ class NotizPrestudent extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -17,7 +17,7 @@ class NotizProjekt extends Notiz_Controller
{
if($typeId != "projekt_kurzbz")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -25,8 +25,8 @@ class NotizProjekt extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -17,7 +17,7 @@ class NotizProjektphase extends Notiz_Controller
{
if($typeId != "projektphase_id")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -25,8 +25,8 @@ class NotizProjektphase extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}
@@ -17,7 +17,7 @@ class NotizProjekttask extends Notiz_Controller
{
if($typeId != "projekttask_id")
{
return $this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('ui','error_typeNotizIdIncorrect'), self::ERROR_TYPE_GENERAL);
}
//TODO define permission
@@ -25,8 +25,8 @@ class NotizProjekttask extends Notiz_Controller
{
$result = $this->p->t('lehre','error_keineSchreibrechte');
return $this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
$this->terminateWithError($result, self::ERROR_TYPE_GENERAL);
}
return $this->terminateWithSuccess("berechtigt in überschreibender Funktion");
$this->terminateWithSuccess("berechtigt in überschreibender Funktion");
}
}