Quantcast
Channel: DOCU - Foren
Viewing all articles
Browse latest Browse all 6565

ILIAS Developers: how to get the current obj/refid in getElementHTML of ilPageComponentPluginGUI

$
0
0
hello together,

how can i get the current obj/refid in getElementHTML of ilPageComponentPluginGUI?
i want to check if user is able to edit the current ref. if he is allowed i want to show something else.

what is the correct way? $_GET['ref_id'] is not the right way i guess and i don´t know if it always set for each "ValidParentType"


function getElementHTML($a_mode, array $a_properties, $a_plugin_version)

{

    global $ilUser, $DIC;

      

    $access = $DIC->access();

    var_dump($access->checkAccess("write", "", $_GET['ref_id']));
}

Viewing all articles
Browse latest Browse all 6565

Trending Articles