Skip to content

Commit

Permalink
address concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored Jun 8, 2022
1 parent 38ad047 commit e4bc6fb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +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) ||
datasource.owners.map(o => o.value).includes(user.userId);
const allowEdit = datasource.owners
.map(o => o.id || o.value)
.includes(user.userId);
isUserAdmin(user);

const editText = t('Edit dataset');
Expand Down

0 comments on commit e4bc6fb

Please sign in to comment.