29 throw new ilException(
"_getCommands must not be called on user object.");
32 public function _checkAccess(
string $cmd,
string $permission,
int $ref_id,
int $obj_id, ?
int $user_id = null): bool
34 throw new ilException(
"_checkAccess must not be called on user object.");
40 $main_tpl = $DIC->ui()->mainTemplate();
43 if (
'usr_registration' == $target) {
46 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'registration');
47 $main_tpl->setOnScreenMessage(
'failure', sprintf(
$GLOBALS[
'DIC']->
language()->txt(
'registration_disabled_no_access'),
$settings->get(
'admin_email')),
true);
50 } elseif (
'usr_nameassist' == $target) {
51 if (!
$settings->get(
'password_assistance')) {
52 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'pwassist');
53 $main_tpl->setOnScreenMessage(
'failure', sprintf(
$GLOBALS[
'DIC']->
language()->txt(
'unassist_disabled_no_access'),
$settings->get(
'admin_email')),
true);
56 } elseif (
'usr_pwassist' == $target) {
57 if (!
$settings->get(
'password_assistance')) {
58 $GLOBALS[
'DIC']->language()->loadLanguageModule(
'pwassist');
59 $main_tpl->setOnScreenMessage(
'failure', sprintf(
$GLOBALS[
'DIC']->
language()->txt(
'pwassist_disabled_no_access'),
$settings->get(
'admin_email')),
true);
74 preg_match(
"/usr_(\\d*).*/ui", $ilWACPath->
getFileName(), $matches);
75 $usr_id = $matches[1];
78 if ($usr_id ==
$ilUser->getId()) {
84 if ($public_upload !=
'y') {
91 if ($public_profile ==
'g' and
$ilSetting->get(
'enable_global_profiles') and
$ilSetting->get(
'pub_section')) {
_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...
static _checkGoto(string $target)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjAuthSettingsGUI.