-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
❯ sudo -u prey /usr/lib/prey/current/bin/prey config settings update 'control-panel.permissions.wifi_location' true
EXCEPTION! Cannot read properties of undefined (reading 'possiblevalues')
TypeError: Cannot read properties of undefined (reading 'possiblevalues')
at exports.update (/usr/lib/prey/versions/1.13.20/lib/conf/settings.js:51:26)
at /usr/lib/prey/versions/1.13.20/lib/conf/cli.js:58:11however:
❯ sudo -H -u prey bash -c "/usr/lib/prey/current/bin/prey config settings list"
# shows
# ...
'control-panel.send_location_on_connect': false,
'control-panel.permissions.wifi_location': 'false',
'control-panel.permissions.native_location': 'false'
}
I've tried 'true' as well as true -- same response each time.
Doing some debugging, I see at line 51:
{
dataFromName: [],
dataToSave: true,
values: {
positional: [ 'control-panel.permissions.wifi_location', 'true' ],
key: 'true'
},
reqPreyConfig: [
// missing wifi_location, native_location, and send_location_on_connect
]
}so, if anything, I'd say that the list command is including data it should not
Metadata
Metadata
Assignees
Labels
No labels