Commit e1e0ab25 authored by alexpott's avatar alexpott

Issue #2316203 by olli, tim.plunkett | Charles Belov: Fixed Permission "Use...

Issue #2316203 by olli, tim.plunkett | Charles Belov: Fixed Permission "Use the administration pages and help" grants permission to configure Image Toolkit.
parent 960fedc5
......@@ -36,7 +36,7 @@ class ToolkitSetupFormTest extends WebTestBase {
public function setUp() {
parent::setUp();
$this->admin_user = $this->drupalCreateUser(array(
'access administration pages',
'administer site configuration',
));
$this->drupalLogin($this->admin_user);
}
......@@ -66,5 +66,10 @@ function testToolkitSetupForm() {
$edit = array('test[test_parameter]' => '20');
$this->drupalPostForm(NULL, $edit, 'Save configuration');
$this->assertEqual(\Drupal::config('system.image.test_toolkit')->get('test_parameter'), '20');
// Test access without the permission 'administer site configuration'.
$this->drupalLogin($this->drupalCreateUser(array('access administration pages')));
$this->drupalGet('admin/config/media/image-toolkit');
$this->assertResponse(403);
}
}
......@@ -187,7 +187,7 @@ system.image_toolkit_settings:
_form: 'Drupal\system\Form\ImageToolkitForm'
_title: 'Image toolkit'
requirements:
_permission: 'access administration pages'
_permission: 'administer site configuration'
system.site_maintenance_mode:
path: '/admin/config/development/maintenance'
......
Markdown is supported
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