check if $selrole is set

This commit is contained in:
Uwe Steinmann 2016-03-23 16:27:56 +01:00
parent 8d5e6d9d14
commit c7836aabfe

View File

@ -265,6 +265,7 @@ $(document).ready( function() {
<?php <?php
$this->contentHeading(getMLText("access_control")); $this->contentHeading(getMLText("access_control"));
if($selrole) {
$aro = SeedDMS_Aro::getInstance($selrole, $dms); $aro = SeedDMS_Aro::getInstance($selrole, $dms);
if(!$aro) { if(!$aro) {
$this->warningMsg(getMLText("missing_request_object")); $this->warningMsg(getMLText("missing_request_object"));
@ -274,6 +275,7 @@ $(document).ready( function() {
<div id="acostree" data-url="out.Acl.php?action=tree&roleid=<?= ($selrole ? $selrole->getID() : 0) ?>">Berechtigungen werden geladen ...</div> <div id="acostree" data-url="out.Acl.php?action=tree&roleid=<?= ($selrole ? $selrole->getID() : 0) ?>">Berechtigungen werden geladen ...</div>
<?php <?php
} }
}
?> ?>
</div> </div>
</div> </div>