Index: includes/ucp/ucp_groups.php =================================================================== --- includes/ucp/ucp_groups.php (revision 9737) +++ includes/ucp/ucp_groups.php (working copy) @@ -693,16 +693,18 @@ avatar_gallery($category, $avatar_select, 4); } - $avatars_enabled = ($can_upload || ($config['allow_avatar_local'] || $config['allow_avatar_remote'])) ? true : false; + $avatars_enabled = ($auth->acl_get('u_chgavatar') && ($config['allow_avatar_local'] || $config['allow_avatar_remote'])) ? true : false; $template->assign_vars(array( 'S_EDIT' => true, 'S_INCLUDE_SWATCH' => true, - 'S_CAN_UPLOAD' => $can_upload, + 'S_UPLOAD_AVATAR_FILE' => $can_upload, + 'S_UPLOAD_AVATAR_URL' => $avatars_enabled, + 'S_LINK_AVATAR' => $avatars_enabled, 'S_FORM_ENCTYPE' => ($can_upload) ? ' enctype="multipart/form-data"' : '', 'S_ERROR' => (sizeof($error)) ? true : false, 'S_SPECIAL_GROUP' => ($group_type == GROUP_SPECIAL) ? true : false, - 'S_AVATARS_ENABLED' => $avatars_enabled, + 'S_AVATARS_ENABLED' => ($can_upload || $avatars_enabled), 'S_DISPLAY_GALLERY' => ($config['allow_avatar_local'] && !$display_gallery) ? true : false, 'S_IN_GALLERY' => ($config['allow_avatar_local'] && $display_gallery) ? true : false, Index: includes/ucp/ucp_profile.php =================================================================== --- includes/ucp/ucp_profile.php (revision 9737) +++ includes/ucp/ucp_profile.php (working copy) @@ -616,17 +616,17 @@ } else if ($config['allow_avatar']) { - $avatars_enabled = ($can_upload || ($auth->acl_get('u_chgavatar') && ($config['allow_avatar_local'] || $config['allow_avatar_remote']))) ? true : false; + $avatars_enabled = ($auth->acl_get('u_chgavatar') && ($config['allow_avatar_local'] || $config['allow_avatar_remote'])) ? true : false; $template->assign_vars(array( 'AVATAR_WIDTH' => request_var('width', $user->data['user_avatar_width']), 'AVATAR_HEIGHT' => request_var('height', $user->data['user_avatar_height']), - 'S_AVATARS_ENABLED' => $avatars_enabled, + 'S_AVATARS_ENABLED' => ($can_upload || $avatars_enabled), 'S_UPLOAD_AVATAR_FILE' => $can_upload, - 'S_UPLOAD_AVATAR_URL' => $can_upload, - 'S_LINK_AVATAR' => ($auth->acl_get('u_chgavatar') && $config['allow_avatar_remote']) ? true : false, - 'S_DISPLAY_GALLERY' => ($auth->acl_get('u_chgavatar') && $config['allow_avatar_local']) ? true : false) + 'S_UPLOAD_AVATAR_URL' => $avatars_enabled, + 'S_LINK_AVATAR' => $avatars_enabled, + 'S_DISPLAY_GALLERY' => $avatars_enabled) ); } Index: styles/prosilver/template/ucp_avatar_options.html =================================================================== --- styles/prosilver/template/ucp_avatar_options.html (revision 9737) +++ styles/prosilver/template/ucp_avatar_options.html (working copy) @@ -13,21 +13,21 @@
- +