diff options
author | Corey Hulen <corey@hulen.com> | 2016-05-11 05:24:20 -0700 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-05-11 09:24:20 -0300 |
commit | d7197943f0e645c6a5a3c463ae9df2beab1256b9 (patch) | |
tree | 040f04f7a4eee99071b7b8370541748b410c8bdd | |
parent | a12e575877d0fcfc90a1f3fd3a7fc7878a12a757 (diff) | |
download | chat-d7197943f0e645c6a5a3c463ae9df2beab1256b9.tar.gz chat-d7197943f0e645c6a5a3c463ae9df2beab1256b9.tar.bz2 chat-d7197943f0e645c6a5a3c463ae9df2beab1256b9.zip |
Fixing compliance reporting (#2964)
-rw-r--r-- | api/admin.go | 2 | ||||
-rw-r--r-- | webapp/components/admin_console/compliance_reports.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/admin.go b/api/admin.go index 7ab2c9cfc..8f66f60c1 100644 --- a/api/admin.go +++ b/api/admin.go @@ -33,7 +33,7 @@ func InitAdmin() { BaseRoutes.Admin.Handle("/analytics/{name:[A-Za-z0-9_]+}", ApiUserRequired(getAnalytics)).Methods("GET") BaseRoutes.Admin.Handle("/save_compliance_report", ApiUserRequired(saveComplianceReport)).Methods("POST") BaseRoutes.Admin.Handle("/compliance_reports", ApiUserRequired(getComplianceReports)).Methods("GET") - BaseRoutes.Admin.Handle("/download_compliance_report/{id:[A-Za-z0-9]+}", ApiUserRequired(downloadComplianceReport)).Methods("GET") + BaseRoutes.Admin.Handle("/download_compliance_report/{id:[A-Za-z0-9]+}", ApiUserRequiredTrustRequester(downloadComplianceReport)).Methods("GET") BaseRoutes.Admin.Handle("/upload_brand_image", ApiAdminSystemRequired(uploadBrandImage)).Methods("POST") BaseRoutes.Admin.Handle("/get_brand_image", ApiAppHandlerTrustRequester(getBrandImage)).Methods("GET") BaseRoutes.Admin.Handle("/reset_mfa", ApiAdminSystemRequired(adminResetMfa)).Methods("POST") diff --git a/webapp/components/admin_console/compliance_reports.jsx b/webapp/components/admin_console/compliance_reports.jsx index 702c1a969..04b2c4deb 100644 --- a/webapp/components/admin_console/compliance_reports.jsx +++ b/webapp/components/admin_console/compliance_reports.jsx @@ -7,7 +7,7 @@ import * as Utils from '../../utils/utils.jsx'; import AdminStore from '../../stores/admin_store.jsx'; import UserStore from '../../stores/user_store.jsx'; -import * as Client from '../../utils/web_client.jsx'; +import Client from 'utils/web_client.jsx'; import * as AsyncClient from '../../utils/async_client.jsx'; import {FormattedMessage, FormattedDate, FormattedTime} from 'react-intl'; |