Format dynamic_system_view.go

This commit is contained in:
Brian Kassouf 2017-01-19 16:54:08 -08:00
parent f3870061ee
commit 68a1780052
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ func (d dynamicSystemView) SudoPrivilege(path string, token string) bool {
// The operation type isn't important here as this is run from a path the
// user has already been given access to; we only care about whether they
// have sudo
req := new(logical.Request)
req.Operation = logical.ReadOperation
req.Path = path
req := new(logical.Request)
req.Operation = logical.ReadOperation
req.Path = path
_, rootPrivs := acl.AllowOperation(req)
return rootPrivs
}