macaroons: rename PermissionsConstraint to AllowConstraint

This commit is contained in:
whythat authored and Olaoluwa Osuntokun committed 2017-09-19 16:46:20 -07:00
1 parent 7df503575c
commit 1379488e72
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -569,7 +569,7 @@ func genMacaroons(svc *bakery.Service, admFile, roFile string) error {
// Generate the read-only macaroon and write it to a file.
roMacaroon, err := macaroons.AddConstraints(admMacaroon,
macaroons.PermissionsConstraint(roPermissions...))
macaroons.AllowConstraint(roPermissions...))
if err != nil {
return err
}