private boolean isAdmin(Request request) {
    return hasAdmin(request) && "true".equals(RequestAuditEventCreatorHelper.getProperty(request, UserResourceProvider.USER_ADMIN_PROPERTY_ID));
  }
Returns fromt he request if the user has admin rights
@param request
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/eventcreator/UserEventCreator.java