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,9 +198,10 @@ class DatasourceControl extends React.PureComponent {
|
||||||
|
|
||||||
const isSqlSupported = datasource.type === 'table';
|
const isSqlSupported = datasource.type === 'table';
|
||||||
const { user } = this.props;
|
const { user } = this.props;
|
||||||
const allowEdit =
|
const allowEdit = datasource.owners
|
||||||
datasource.owners.map(o => o.id).includes(user.userId) ||
|
.map(o => o.id || o.value)
|
||||||
isUserAdmin(user);
|
.includes(user.userId);
|
||||||
|
isUserAdmin(user);
|
||||||
|
|
||||||
const editText = t('Edit dataset');
|
const editText = t('Edit dataset');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue