working commit
This commit is contained in:
@@ -239,6 +239,13 @@ func (hand *Handler) DeleteCollection(rctx *router.Context) {
|
||||
params := &operator.DeleteColletionParams{
|
||||
Path: cpath,
|
||||
}
|
||||
err := rctx.BindQuery(params)
|
||||
if err != nil {
|
||||
hand.logg.Errorf("DeleteColletion binding error: %v", err)
|
||||
rctx.SetStatus(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
// Rigth checking
|
||||
operatorID, _ := rctx.GetString(userTag)
|
||||
opEnable, err := hand.CheckRight(rctx.Ctx, operatorID, descr.RightReadFiles, "")
|
||||
|
||||
Reference in New Issue
Block a user