Skip to content
Snippets Groups Projects
Commit ed2dd9be authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3071467 by baldwinlouie, yas, Xiaohua Guan: Adjust permissions for...

Issue #3071467 by baldwinlouie, yas, Xiaohua Guan: Adjust permissions for "Cloud Service Providers" and "AWS Cloud Profile" views listing pages
parent 52a345bd
No related branches found
No related tags found
No related merge requests found
...@@ -293,3 +293,13 @@ function cloud_update_8117() { ...@@ -293,3 +293,13 @@ function cloud_update_8117() {
]); ]);
} }
/**
* Update Cloud Service Providers view permissions.
*/
function cloud_update_8118() {
cloud_update_yml_definitions([
'views.view.cloud_config.yml',
]);
}
...@@ -10,6 +10,9 @@ view all cloud config entities: ...@@ -10,6 +10,9 @@ view all cloud config entities:
title: 'Access all cloud config entities' title: 'Access all cloud config entities'
description: 'Allows access to all cloud config entities. Entity permissions such as <em>List AWS Instances</em> and <em>View own AWS Cloud Instance</em> (or <em>View any AWS Cloud Instance</em>) need to be granted in conjunction. Otherwise, no entities will be shown to the user.' description: 'Allows access to all cloud config entities. Entity permissions such as <em>List AWS Instances</em> and <em>View own AWS Cloud Instance</em> (or <em>View any AWS Cloud Instance</em>) need to be granted in conjunction. Otherwise, no entities will be shown to the user.'
view cloud config admin list:
title: 'View Cloud config administration list'
add cloud config entities: add cloud config entities:
title: 'Create new Cloud config entities' title: 'Create new Cloud config entities'
......
...@@ -430,6 +430,7 @@ display: ...@@ -430,6 +430,7 @@ display:
fields: false fields: false
filters: false filters: false
filter_groups: false filter_groups: false
access: false
display_comment: 'Listing page showing all cloud service providers to administer' display_comment: 'Listing page showing all cloud service providers to administer'
fields: fields:
cloud_config_bulk_form: cloud_config_bulk_form:
...@@ -734,6 +735,10 @@ display: ...@@ -734,6 +735,10 @@ display:
filter_groups: filter_groups:
operator: AND operator: AND
groups: { } groups: { }
access:
type: perm
options:
perm: 'view cloud config admin list'
cache_metadata: cache_metadata:
max-age: 0 max-age: 0
contexts: contexts:
......
...@@ -1248,6 +1248,15 @@ function aws_cloud_update_8172() { ...@@ -1248,6 +1248,15 @@ function aws_cloud_update_8172() {
cloud_update_yml_definitions($files, 'aws_cloud'); cloud_update_yml_definitions($files, 'aws_cloud');
} }
/**
* Update AWS Cloud Profile list view permissions.
*/
function aws_cloud_update_8173() {
cloud_update_yml_definitions([
'views.view.cloud_config_aws_cloud_profile.yml',
], 'aws_cloud');
}
/** /**
* Helper function to add fields to the entity type. * Helper function to add fields to the entity type.
* *
......
...@@ -27,7 +27,7 @@ display: ...@@ -27,7 +27,7 @@ display:
access: access:
type: perm type: perm
options: options:
perm: 'access dashboard' perm: 'view cloud config admin list'
cache: cache:
type: tag type: tag
options: { } options: { }
......
...@@ -69,6 +69,7 @@ class AwsCloudConfigTest extends BrowserTestBase { ...@@ -69,6 +69,7 @@ class AwsCloudConfigTest extends BrowserTestBase {
'view published cloud config entities', 'view published cloud config entities',
'view own published cloud config entities', 'view own published cloud config entities',
'access dashboard', 'access dashboard',
'view cloud config admin list',
'list cloud server template', 'list cloud server template',
'administer aws_cloud', 'administer aws_cloud',
]); ]);
......
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