mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
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:
@@ -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)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user