mirror of https://github.com/apache/superset.git
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:
parent
80be1ce657
commit
b6c11f2b97
|
@ -198,8 +198,9 @@ 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) ||
|
||||
const allowEdit = datasource.owners
|
||||
.map(o => o.id || o.value)
|
||||
.includes(user.userId);
|
||||
isUserAdmin(user);
|
||||
|
||||
const editText = t('Edit dataset');
|
||||
|
|
Loading…
Reference in New Issue