- Rollback of #190867.

merge-requests/26/head
Dries Buytaert 2009-01-13 19:27:21 +00:00
parent 424cf1b182
commit a9b8a48e74
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ function path_admin_form_validate($form, &$form_state) {
form_set_error('dst', t('The alias %alias is already in use in this language.', array('%alias' => $dst)));
}
$item = menu_get_item($src);
if (!$item) {
form_set_error('src', t("The path '@link_path' is invalid.", array('@link_path' => $src)));
if (!$item || !$item['access']) {
form_set_error('src', t("The path '@link_path' is either invalid or you do not have access to it.", array('@link_path' => $src)));
}
}