You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/02/06 14:53:10 UTC

[GitHub] [trafficcontrol] mitchell852 commented on a change in pull request #4196: TP: Provides the ability to view all users for a given role

mitchell852 commented on a change in pull request #4196: TP: Provides the ability to view all users for a given role
URL: https://github.com/apache/trafficcontrol/pull/4196#discussion_r375879651
 
 

 ##########
 File path: traffic_portal/app/src/modules/private/roles/users/index.js
 ##########
 @@ -30,8 +30,8 @@ module.exports = angular.module('trafficPortal.private.roles.users', [])
 							roles: function($stateParams, roleService) {
 								return roleService.getRoles({ id: $stateParams.roleId });
 							},
-							roleUsers: function($stateParams, userService) {
-								return userService.getUsers({ roleId: $stateParams.roleId });
+							roleUsers: function(roles, userService) {
+								return userService.getUsers({ role: roles[0].name });
 
 Review comment:
   i don't follow

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services