Minor - Remove unused function is_platform_authentication()

pull/2650/head
Julio Montoya 6 years ago
parent b1896c2484
commit 53f3e61923
  1. 6
      main/auth/profile.php
  2. 2
      main/template/default/social/edit_profile.html.twig

@ -308,7 +308,7 @@ if (api_get_setting('extended_profile') === 'true') {
}
// PASSWORD, if auth_source is platform
if (is_platform_authentication() &&
if ($user_data['auth_source'] == PLATFORM_AUTH_SOURCE &&
api_get_setting('profile.is_editable') === 'true' &&
api_get_setting('profile', 'password') == 'true'
) {
@ -422,8 +422,8 @@ if ($form->validate()) {
}
$allow_users_to_change_email_with_no_password = true;
if (is_platform_authentication() &&
api_get_setting('allow_users_to_change_email_with_no_password') == 'false'
if ($user_data['auth_source'] == PLATFORM_AUTH_SOURCE &&
api_get_setting('allow_users_to_change_email_with_no_password') === 'false'
) {
$allow_users_to_change_email_with_no_password = false;
}

@ -7,8 +7,6 @@
<div class="social-network-menu">
{% include template ~ '/social/user_block.html.twig' %}
{% extends "@ChamiloTheme/Layout/base-layout.html.twig" %}
{{ social_menu_block }}
</div>
</div>

Loading…
Cancel
Save