Skip to content

Commit 06118d1

Browse files
betodealmeidaeschutho
authored andcommitted
fix: dashboard ownership check (#24249)
(cherry picked from commit 7e70f19)
1 parent b38306b commit 06118d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superset-frontend/src/dashboard/util/permissionUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const isUserDashboardOwner = (
4242
user: UserWithPermissionsAndRoles | UndefinedUser,
4343
) =>
4444
isUserWithPermissionsAndRoles(user) &&
45-
dashboard.owners.some(owner => owner.username === user.username);
45+
dashboard.owners.some(owner => owner.id === user.userId);
4646

4747
export const canUserEditDashboard = (
4848
dashboard: Dashboard,

0 commit comments

Comments
 (0)