后端增加 setSelfInfo 接口防止越权操作

This commit is contained in:
piexlmax
2022-01-07 19:17:33 +08:00
parent 3a74c9483e
commit 8d34adee14
4 changed files with 24 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@ func (c *casbin) Initialize() error {
{PType: "p", V0: "888", V1: "/user/getUserInfo", V2: "GET"},
{PType: "p", V0: "888", V1: "/user/setUserInfo", V2: "PUT"},
{PType: "p", V0: "888", V1: "/user/setSelfInfo", V2: "PUT"},
{PType: "p", V0: "888", V1: "/user/getUserList", V2: "POST"},
{PType: "p", V0: "888", V1: "/user/deleteUser", V2: "DELETE"},
{PType: "p", V0: "888", V1: "/user/changePassword", V2: "POST"},