----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62024/#review186457 -----------------------------------------------------------
security-admin/src/main/java/org/apache/ranger/rest/XUserREST.java Lines 353 (patched) <https://reviews.apache.org/r/62024/#comment263009> why you need to create VXUserList() instance, just return the value from xUserMgr.searchXUsers(searchCriteria) as it was earlier. security-admin/src/main/java/org/apache/ranger/rest/XUserREST.java Line 361 (original), 370 (patched) <https://reviews.apache.org/r/62024/#comment263010> will CollectionUtils.size be more 1?, if so change this check CollectionUtils.size(userRolesList) == 1 to CollectionUtils.size(userRolesList) > 0 - Ramesh Mani On Sept. 27, 2017, 11:27 a.m., Nitin Galave wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62024/ > ----------------------------------------------------------- > > (Updated Sept. 27, 2017, 11:27 a.m.) > > > Review request for ranger, Ankita Sinha, Fatima Khan, Gautam Borad, Mehul > Parikh, and Velmurugan Periasamy. > > > Bugs: RANGER-1756 > https://issues.apache.org/jira/browse/RANGER-1756 > > > Repository: ranger > > > Description > ------- > > Handle role related restrictions for users having User role. > > > Diffs > ----- > > > agents-common/src/main/java/org/apache/hadoop/security/SecureClientLogin.java > 320a9a4 > security-admin/src/main/java/org/apache/ranger/rest/XUserREST.java 739ea05 > security-admin/src/main/webapp/scripts/utils/XAUtils.js ecf43ad > > > Diff: https://reviews.apache.org/r/62024/diff/4/ > > > Testing > ------- > > Verified scenario's : > 1. A user with ROLE_ADMIN able to see users which has USER_ROLE/ADMIN_ROLE. > 2. A user with ROLE_KEYADMIN able to see users which has > USER_ROLE/KEYADMIN_ROLE. > 3. A user with role ROLE_USER able to see only himself. > > > Thanks, > > Nitin Galave > >
