Skip to content

Commit

Permalink
MSPB-258,MSPB-263,MSPB-268,MSPB-270,MSPB-272: Render user features ba…
Browse files Browse the repository at this point in the history
…sed on feature set (#446)
  • Loading branch information
joristirado authored Aug 30, 2022
1 parent c314a80 commit 361914a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions submodules/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ define(function(require) {
listNumbers: [],
phoneNumber: '',
differentEmail: dataUser.email !== dataUser.username,
mapFeatures: {
mapFeatures: _.pickBy({
caller_id: {
icon: 'fa fa-user',
iconColor: 'monster-blue',
Expand Down Expand Up @@ -273,7 +273,11 @@ define(function(require) {
iconColor: 'monster-red',
title: self.i18n.active().users.do_not_disturb.title
}
},
}, function(object, feature) {
return monster.util.isFeatureAvailable(
['smartpbx', 'users', 'features', _.camelCase(feature), 'edit']
);
}),
outboundPrivacy: _.map(self.appFlags.common.outboundPrivacy, function(item) {
return {
key: item,
Expand Down

0 comments on commit 361914a

Please sign in to comment.