issue-601: changed can-i check from edit to update

mine
Christian Vent 2020-03-05 15:36:29 +01:00
parent 9427f2a3db
commit 2b85f1faa4
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ func (b *Browser) editCmd(evt *tcell.EventKey) *tcell.EventKey {
} }
ns, n := client.Namespaced(path) ns, n := client.Namespaced(path)
if ok, err := b.app.Conn().CanI(ns, b.GVR().String(), []string{"edit"}); !ok || err != nil { if ok, err := b.app.Conn().CanI(ns, b.GVR().String(), []string{"patch"}); !ok || err != nil {
b.App().Flash().Err(fmt.Errorf("Current user can't edit resource %s", b.GVR())) b.App().Flash().Err(fmt.Errorf("Current user can't edit resource %s", b.GVR()))
return nil return nil
} }