From 82b4455e24d779b6f89f3a5216593eb207f67df9 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Mon, 18 Nov 2019 21:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9E=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E8=A7=92=E8=89=B2=E6=97=A0=E6=B3=95=E6=B3=A8=E9=94=80?= =?UTF-8?q?=E7=9A=84bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Server/Base/ApiAuthAttribute.cs | 2 +- ShadowEditor.Web/Web.config | 2 +- ShadowEditor.Web/src/editor/assets/AnimationPanel.jsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ShadowEditor.Server/Base/ApiAuthAttribute.cs b/ShadowEditor.Server/Base/ApiAuthAttribute.cs index 3f0ce770..f99a0d81 100644 --- a/ShadowEditor.Server/Base/ApiAuthAttribute.cs +++ b/ShadowEditor.Server/Base/ApiAuthAttribute.cs @@ -62,7 +62,7 @@ namespace ShadowEditor.Server.Base return; } - var loginAttribute = attributes.Find(n => n.Authority == "Login"); // 具有Login权限的接口,所有登录用户都能使用 + var loginAttribute = attributes.Find(n => n.Authority == "LOGIN"); // 具有Login权限的接口,所有登录用户都能使用 if (loginAttribute != null) { diff --git a/ShadowEditor.Web/Web.config b/ShadowEditor.Web/Web.config index 227cd460..47684523 100644 --- a/ShadowEditor.Web/Web.config +++ b/ShadowEditor.Web/Web.config @@ -15,7 +15,7 @@ - + diff --git a/ShadowEditor.Web/src/editor/assets/AnimationPanel.jsx b/ShadowEditor.Web/src/editor/assets/AnimationPanel.jsx index 2877a6f0..7327defe 100644 --- a/ShadowEditor.Web/src/editor/assets/AnimationPanel.jsx +++ b/ShadowEditor.Web/src/editor/assets/AnimationPanel.jsx @@ -28,6 +28,7 @@ class AnimationPanel extends React.Component { render() { const { className, style } = this.props; const { data, categoryData, name, categories } = this.state; + const { enableAuthority, authorities } = app.server; let list = data; @@ -61,7 +62,7 @@ class AnimationPanel extends React.Component {