Allow removing an assigned user

This commit is contained in:
FusionPBX 2024-07-23 15:15:50 -06:00 committed by GitHub
parent f495b28356
commit 06a6292ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@
if (permission_exists('device_label')) {
$array['devices'][0]['device_label'] = $device_label;
}
if (permission_exists('device_user') && is_uuid($device_user_uuid)) {
if (permission_exists('device_user') && (is_uuid($device_user_uuid) || empty($device_user_uuid))) {
$array['devices'][0]['device_user_uuid'] = $device_user_uuid;
}
if (permission_exists('device_username_password')) {