Add option disable Home/Profile/Registration block #995

Open
opened 2026-10-05 00:27:05 +02:00 by adam · 1 comment
Owner

Hi,
I'm impressed by this software. I've tried to enhance it using ldap_login, however I've come across a small issue. Newly created users can go to customise and change their email&password / theme. We can disable the latter but how can we disable the former. So is there an option or can there be an option to disable changing userinfo? Our software does updates them by Windows Active Directory.

I found in ./themes/default/template/profile_content.tpl the following:
{if not $SPECIAL_USER} {* can modify password + email*}
and
{if $ALLOW_USER_CUSTOMIZATION}
Is this what should be used?

Hi, I'm impressed by this software. I've tried to enhance it using ldap_login, however I've come across a small issue. Newly created users can go to customise and change their email&password / theme. We can disable the latter but how can we disable the former. So is there an option or can there be an option to disable changing userinfo? Our software does updates them by Windows Active Directory. I found in ./themes/default/template/profile_content.tpl the following: `{if not $SPECIAL_USER} {* can modify password + email*}` and `{if $ALLOW_USER_CUSTOMIZATION}` Is this what should be used? <!-- github-sync-id:543153704 -->
Author
Owner

For now I've got a workaround in my main.inc.php:

function ld_profile(){
	//removes the Profile/Registration block for new users. (admin/guest excluded)
	global $template;
	global $userdata;
	if($userdata['id']>2){
		$template->assign('SPECIAL_USER', True);
	}
}
For now I've got a workaround in my main.inc.php: ``` function ld_profile(){ //removes the Profile/Registration block for new users. (admin/guest excluded) global $template; global $userdata; if($userdata['id']>2){ $template->assign('SPECIAL_USER', True); } } ``` <!-- github-comment-id:569423861 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#995