Skip to content

Commit

Permalink
[SHIBUI-1058]
Browse files Browse the repository at this point in the history
Updated serviceEnabled per Ryan's request to leave "type" alone and to
add a new "widget" = "hidden" field.
  • Loading branch information
Bill Smith committed Jan 22, 2019
1 parent 9595493 commit ae7520b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class JsonSchemaBuilderService {
if (currentUser != null && currentUser.role != 'ROLE_ADMIN') {
// user isn't an admin, so hide 'ServiceEnabled'
Map<String, String> serviceEnabled = (HashMap) json['properties']['serviceEnabled']
serviceEnabled['type'] = 'hidden'
serviceEnabled['widget'] = 'hidden'
serviceEnabled.remove('title')
serviceEnabled.remove('description')
}
Expand Down

0 comments on commit ae7520b

Please sign in to comment.