28 throw new ilException(
"_getCommands must not be called on user object.");
33 throw new ilException(
"_checkAccess must not be called on user object.");
39 $main_tpl = $DIC->ui()->mainTemplate();
42 if (
'usr_registration' == $target) {
45 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'registration');
46 $main_tpl->setOnScreenMessage(
'failure', sprintf(
$GLOBALS[
'DIC']->
language()->txt(
'registration_disabled_no_access'), $settings->get(
'admin_email')),
true);
49 } elseif (
'usr_nameassist' == $target) {
50 if (!$settings->get(
'password_assistance')) {
51 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'pwassist');
52 $main_tpl->setOnScreenMessage(
'failure', sprintf(
$GLOBALS[
'DIC']->
language()->txt(
'unassist_disabled_no_access'), $settings->get(
'admin_email')),
true);
55 } elseif (
'usr_pwassist' == $target) {
56 if (!$settings->get(
'password_assistance')) {
57 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'pwassist');
58 $main_tpl->setOnScreenMessage(
'failure', sprintf(
$GLOBALS[
'DIC']->
language()->txt(
'pwassist_disabled_no_access'), $settings->get(
'admin_email')),
true);
70 $ilUser = $DIC[
'ilUser'];
73 preg_match(
"/usr_(\\d*).*/ui", $ilWACPath->
getFileName(), $matches);
74 $usr_id = $matches[1];
77 if ($usr_id == $ilUser->getId()) {
83 if ($public_upload !=
'y') {
90 if ($public_profile ==
'g' and
$ilSetting->get(
'enable_global_profiles') and
$ilSetting->get(
'pub_section')) {
93 } elseif (($public_profile ==
'y' or $public_profile ==
'g') and $ilUser->getId() !=
ANONYMOUS_USER_ID && $ilUser->getId() != 0) {
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
canBeDelivered(ilWACPath $ilWACPath)
static _lookupPref(int $a_usr_id, string $a_keyword)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _checkGoto(string $target)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjAuthSettingsGUI.
language()
description: > Example for rendring a language glyph.