update core to 7.36
This commit is contained in:
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = menu.test
|
||||
configure = admin/structure/menu
|
||||
|
||||
; Information added by Drupal.org packaging script on 2014-05-08
|
||||
version = "7.28"
|
||||
; Information added by Drupal.org packaging script on 2015-04-02
|
||||
version = "7.36"
|
||||
project = "drupal"
|
||||
datestamp = "1399522731"
|
||||
datestamp = "1427943826"
|
||||
|
||||
|
@@ -69,7 +69,7 @@ function menu_menu() {
|
||||
'title' => 'Parent menu items',
|
||||
'page callback' => 'menu_parent_options_js',
|
||||
'type' => MENU_CALLBACK,
|
||||
'access arguments' => array(TRUE),
|
||||
'access arguments' => array('administer menu'),
|
||||
);
|
||||
$items['admin/structure/menu/list'] = array(
|
||||
'title' => 'List menus',
|
||||
|
@@ -513,6 +513,23 @@ class MenuTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test administrative users other than user 1 can access the menu parents AJAX callback.
|
||||
*/
|
||||
public function testMenuParentsJsAccess() {
|
||||
$admin = $this->drupalCreateUser(array('administer menu'));
|
||||
$this->drupalLogin($admin);
|
||||
// Just check access to the callback overall, the POST data is irrelevant.
|
||||
$this->drupalGetAJAX('admin/structure/menu/parents');
|
||||
$this->assertResponse(200);
|
||||
|
||||
// Do standard user tests.
|
||||
// Login the user.
|
||||
$this->drupalLogin($this->std_user);
|
||||
$this->drupalGetAJAX('admin/structure/menu/parents');
|
||||
$this->assertResponse(403);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get standard menu link.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user