Ubuntu Pastebin

Paste from robert-ancell at Wed, 11 Oct 2017 21:13:13 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
diff --git a/daemon/api.go b/daemon/api.go
index f14e21601..6dd35072c 100644
--- a/daemon/api.go
+++ b/daemon/api.go
@@ -191,6 +191,7 @@ var (
        stateChangeCmd = &Command{
                Path:   "/v2/changes/{id}",
                UserOK: true,
+               PolkitOK: "io.snapcraft.snapd.manage",
                GET:    getChange,
                POST:   abortChange,
        }
Download as text