后端增加 setSelfInfo 接口防止越权操作
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user