permissions.add(RestPermissions.DASHBOARDS_READ + ":" + dashboardpermission);
}
for (String dashboardeditpermissions : formData.dashboardeditpermissions) {
permissions.add(RestPermissions.DASHBOARDS_EDIT + ":" + dashboardeditpermissions);
}
final ChangeUserRequest changeRequest = formData.toApiRequest();
changeRequest.permissions = Lists.newArrayList(permissions);
user.update(changeRequest);
return redirect(routes.UsersController.index());
}