diff --git a/superset-frontend/src/dashboard/util/permissionUtils.ts b/superset-frontend/src/dashboard/util/permissionUtils.ts index 3ea63976bfdaa..6a218349b2f94 100644 --- a/superset-frontend/src/dashboard/util/permissionUtils.ts +++ b/superset-frontend/src/dashboard/util/permissionUtils.ts @@ -42,7 +42,7 @@ const isUserDashboardOwner = ( user: UserWithPermissionsAndRoles | UndefinedUser, ) => isUserWithPermissionsAndRoles(user) && - dashboard.owners.some(owner => owner.username === user.username); + dashboard.owners.some(owner => owner.id === user.userId); export const canUserEditDashboard = ( dashboard: Dashboard,