acl: allow tokens to lookup linked roles. (#14227)

When listing or reading an ACL role, roles linked to the ACL token
used for authentication can be returned to the caller.
This commit is contained in:
James Rasell
2022-08-24 13:51:51 +02:00
committed by GitHub
parent 4be6de212f
commit f4db3b64a2
6 changed files with 226 additions and 33 deletions

View File

@@ -579,9 +579,8 @@ func TestHTTPServer_ACLRoleListRequest(t *testing.T) {
// Send the HTTP request.
obj, err := srv.Server.ACLRoleListRequest(respW, req)
require.Error(t, err)
require.ErrorContains(t, err, "Permission denied")
require.Nil(t, obj)
require.NoError(t, err)
require.Empty(t, obj)
},
},
{