Permission Problem workaround

This commit is contained in:
Paminger
2016-06-24 13:08:18 +02:00
parent 4f14e7fa92
commit 925d210bff
7 changed files with 52 additions and 21 deletions
+7 -1
View File
@@ -50,8 +50,14 @@ class berechtigung extends Berechtigung_model
* @param $berechtigung_kurzbz
* @return true wenn ok, false im Fehlerfall
*/
public function load($berechtigung_kurzbz)
public function load($berechtigung_kurzbz = null)
{
if (empty($berechtigung_kurzbz))
{
$this->errormsg = "berechtigung not set!";
return false;
}
$result = parent::load($berechtigung_kurzbz);
if (is_object($result) && $result->error == EXIT_SUCCESS && is_array($result->retval))