Commit a9b8a48e authored by Dries's avatar Dries
Browse files

- Rollback of #190867.

parent 424cf1b1
......@@ -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)));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment