1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-13 05:42:37 +00:00

use patch for update, fix namespace actions

This commit is contained in:
Daishan Peng
2017-12-27 15:02:16 -07:00
committed by Darren Shepherd
parent 6e00d528c2
commit 026837668c
4 changed files with 12 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ const (
)
func ValidateAction(request *types.APIContext) (*types.Action, error) {
if request.Action == "" || request.Method != http.MethodPost {
if request.Action == "" || request.Link != "" || request.Method != http.MethodPost {
return nil, nil
}