Skip to content
Snippets Groups Projects
Commit ec174da8 authored by Tobias Zimmermann's avatar Tobias Zimmermann Committed by Bojan Bogdanovic
Browse files

Issue #3426075: Hide the granularity form element for umbrella scopes

parent 21584649
No related branches found
Tags 8.x-2.3
No related merge requests found
......@@ -124,6 +124,11 @@ class Oauth2ScopeForm extends EntityForm {
],
'#default_value' => $scope->getGranularity(),
'#description' => $this->t('Map scope to a single permission or role.'),
'#states' => [
'visible' => [
'#edit-umbrella' => ['checked' => FALSE],
],
],
];
$form['permission'] = [
'#type' => 'select',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment