mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AccessControl: Let users with data source create permissions list non-core plugins (#48897)
* Only require create and permissions for new data source page * Let users with permissions to create data sources list non-core plugins * Keep the admin check as fallback when using rbac as well
This commit is contained in:
@@ -60,9 +60,7 @@ export class DataSourcesListPage extends PureComponent<Props> {
|
||||
const { dataSources, dataSourcesCount, navModel, layoutMode, searchQuery, setDataSourcesSearchQuery, hasFetched } =
|
||||
this.props;
|
||||
|
||||
const canCreateDataSource =
|
||||
contextSrv.hasPermission(AccessControlAction.DataSourcesCreate) &&
|
||||
contextSrv.hasPermission(AccessControlAction.DataSourcesWrite);
|
||||
const canCreateDataSource = contextSrv.hasPermission(AccessControlAction.DataSourcesCreate);
|
||||
|
||||
const linkButton = {
|
||||
href: 'datasources/new',
|
||||
|
||||
Reference in New Issue
Block a user