Skip to content

Commit

Permalink
Fix data provider id comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty committed Sep 21, 2020
1 parent 7386fa9 commit 26481f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/user/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DashboardUser extends User {
canManage(dataProviderId) {
return (
this.superAdmin ||
this.dataProviders.some(({ id }) => dataProviderId === id)
this.dataProviders.some(({ id }) => Number(dataProviderId) === id)
)
}
}
Expand Down

1 comment on commit 26481f1

@vercel
Copy link

@vercel vercel bot commented on 26481f1 Sep 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.