Refactor #5831 fixed some bugs for getPermissionList