mirror of
https://github.com/apache/superset.git
synced 2026-05-08 01:15:46 +00:00
fix: Alpha are unable to perform a second modification to a Dataset when in Explore (#20296)
* handle payload coming back from save * address concerns
This commit is contained in:
@@ -198,9 +198,10 @@ class DatasourceControl extends React.PureComponent {
|
||||
|
||||
const isSqlSupported = datasource.type === 'table';
|
||||
const { user } = this.props;
|
||||
const allowEdit =
|
||||
datasource.owners.map(o => o.id).includes(user.userId) ||
|
||||
isUserAdmin(user);
|
||||
const allowEdit = datasource.owners
|
||||
.map(o => o.id || o.value)
|
||||
.includes(user.userId);
|
||||
isUserAdmin(user);
|
||||
|
||||
const editText = t('Edit dataset');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user