diff --git a/lib/NGCP/Panel/Role/API/Preferences.pm b/lib/NGCP/Panel/Role/API/Preferences.pm index 5c596d3b7d..39c8283f95 100644 --- a/lib/NGCP/Panel/Role/API/Preferences.pm +++ b/lib/NGCP/Panel/Role/API/Preferences.pm @@ -65,7 +65,9 @@ sub get_resource { my %profile_allowed_attrs; # for filtering subscriber attrs on its profile my $has_profile = 0; my $attr = 0; + my $resource = {}; if($type eq "subscribers") { + $resource->{'lock'} = 0; $prefs = $item->provisioning_voip_subscriber->voip_usr_preferences; my $profile = $item->provisioning_voip_subscriber->voip_subscriber_profile; if ($profile) { @@ -95,7 +97,6 @@ sub get_resource { order_by => { '-asc' => 'id' }, }); - my $resource; foreach my $pref($prefs->all) { my $value; my $processed = 0;