Skip to content

Commit

Permalink
Merge pull request #2470 from resin-io/fix-blacklist-setting
Browse files Browse the repository at this point in the history
gui: Also blacklist match against device & raw path
  • Loading branch information
zvin authored Sep 26, 2018
2 parents 6c73ddc + 0d80957 commit 1c5bab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/gui/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ app.run(($timeout) => {
$timeout(() => {
if (BLACKLISTED_DRIVES.length) {
const allowedDrives = drives.filter((drive) => {
return !BLACKLISTED_DRIVES.includes(drive.devicePath)
return !(BLACKLISTED_DRIVES.includes(drive.devicePath) ||
BLACKLISTED_DRIVES.includes(drive.device) ||
BLACKLISTED_DRIVES.includes(drive.raw))
})
availableDrives.setDrives(allowedDrives)
} else {
Expand Down

0 comments on commit 1c5bab6

Please sign in to comment.