|
|
@@ -98,10 +98,10 @@ func (abc *AddressBookCollection) Update(c *gin.Context) {
|
|
98
|
98
|
return
|
|
99
|
99
|
}
|
|
100
|
100
|
u := service.AllService.UserService.CurUser(c)
|
|
101
|
|
- if f.UserId != u.Id {
|
|
102
|
|
- response.Fail(c, 101, response.TranslateMsg(c, "NoAccess"))
|
|
103
|
|
- return
|
|
104
|
|
- }
|
|
|
101
|
+ //if f.UserId != u.Id {
|
|
|
102
|
+ // response.Fail(c, 101, response.TranslateMsg(c, "NoAccess"))
|
|
|
103
|
+ // return
|
|
|
104
|
+ //}
|
|
105
|
105
|
ex := service.AllService.AddressBookService.CollectionInfoById(f.Id)
|
|
106
|
106
|
if ex.Id == 0 {
|
|
107
|
107
|
response.Fail(c, 101, response.TranslateMsg(c, "ItemNotFound"))
|