From 43113a0ee4c1654fce8e274cdfcf91fa869b3bb6 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Tue, 27 Apr 2021 20:42:19 +0800 Subject: [PATCH] Fix "/api/unlink" bug. --- authz/authz.go | 3 ++- web/src/App.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/authz/authz.go b/authz/authz.go index 28373595..762c5f8a 100644 --- a/authz/authz.go +++ b/authz/authz.go @@ -81,7 +81,8 @@ p, *, *, GET, /api/get-user, *, * p, *, *, GET, /api/get-organizations, *, * p, *, *, GET, /api/get-default-application, *, * p, *, *, GET, /api/get-default-providers, *, * -p, *, !anonymous, POST, /api/upload-avatar, *, * +p, *, *, POST, /api/upload-avatar, *, * +p, *, *, POST, /api/unlink, *, * ` sa := stringadapter.NewAdapter(ruleText) diff --git a/web/src/App.js b/web/src/App.js index 4064f37e..96aae672 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -197,7 +197,7 @@ class App extends Component { }     - {Setting.isMobile() ? null : Setting.getShortName(this.state.account.name)}   + {Setting.isMobile() ? null : Setting.getShortName(this.state.account.displayName)}