summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-07 20:41:38 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-07 20:41:38 +0000
commitbcd59aa0dd706a635e22e19781e099570799f94a (patch)
treefa2bd6322edec4f8ddd83bdfb62903a95c9d504b /modules
parentf155ed21261bf3fd67fdbf4319223478079593b1 (diff)
downloadbrdo-bcd59aa0dd706a635e22e19781e099570799f94a.tar.gz
brdo-bcd59aa0dd706a635e22e19781e099570799f94a.tar.bz2
- Patch #24617 by Morbus: fixed incorrect access checking.
Diffstat (limited to 'modules')
-rw-r--r--modules/user.module4
-rw-r--r--modules/user/user.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module
index 3179b7b69..f03d8a57e 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -662,7 +662,7 @@ function user_menu($may_cache) {
'callback' => 'user_page', 'access' => TRUE, 'type' => MENU_CALLBACK);
$items[] = array('path' => 'user/autocomplete', 'title' => t('user autocomplete'),
- 'callback' => 'user_autocomplete', 'access' => $admin_access, 'type' => MENU_CALLBACK);
+ 'callback' => 'user_autocomplete', 'access' => $view_access, 'type' => MENU_CALLBACK);
//registration and login pages.
$items[] = array('path' => 'user/login', 'title' => t('log in'),
@@ -1368,7 +1368,7 @@ function user_configure_settings() {
if (variable_get('user_pictures', 0)) {
file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path');
}
-
+
$group = form_radios(t('Picture support'), 'user_pictures', variable_get('user_pictures', 0), array(t('Disabled'), t('Enabled')), t('Enable picture support.'));
$group .= form_textfield(t('Picture image path'), 'user_picture_path', variable_get('user_picture_path', 'pictures'), 30, 255, t('Subdirectory in the directory "%dir" where pictures will be stored.', array('%dir' => variable_get('file_directory_path', 'files') .'/')));
$group .= form_textfield(t('Default picture'), 'user_picture_default', variable_get('user_picture_default', ''), 30, 255, t('URL of picture to display for users with no custom picture selected. Leave blank for none.'));
diff --git a/modules/user/user.module b/modules/user/user.module
index 3179b7b69..f03d8a57e 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -662,7 +662,7 @@ function user_menu($may_cache) {
'callback' => 'user_page', 'access' => TRUE, 'type' => MENU_CALLBACK);
$items[] = array('path' => 'user/autocomplete', 'title' => t('user autocomplete'),
- 'callback' => 'user_autocomplete', 'access' => $admin_access, 'type' => MENU_CALLBACK);
+ 'callback' => 'user_autocomplete', 'access' => $view_access, 'type' => MENU_CALLBACK);
//registration and login pages.
$items[] = array('path' => 'user/login', 'title' => t('log in'),
@@ -1368,7 +1368,7 @@ function user_configure_settings() {
if (variable_get('user_pictures', 0)) {
file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path');
}
-
+
$group = form_radios(t('Picture support'), 'user_pictures', variable_get('user_pictures', 0), array(t('Disabled'), t('Enabled')), t('Enable picture support.'));
$group .= form_textfield(t('Picture image path'), 'user_picture_path', variable_get('user_picture_path', 'pictures'), 30, 255, t('Subdirectory in the directory "%dir" where pictures will be stored.', array('%dir' => variable_get('file_directory_path', 'files') .'/')));
$group .= form_textfield(t('Default picture'), 'user_picture_default', variable_get('user_picture_default', ''), 30, 255, t('URL of picture to display for users with no custom picture selected. Leave blank for none.'));