mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 07:01:09 +02:00
* Correctly call resultant-acl endpoint when user root is root * check test differently * Add changelog
18 lines
432 B
JavaScript
18 lines
432 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import ApplicationAdapter from './application';
|
|
|
|
export default ApplicationAdapter.extend({
|
|
query() {
|
|
const namespace = this.namespaceService.userRootNamespace ?? this.namespaceService.path;
|
|
return this.ajax(this.urlForQuery(), 'GET', { namespace });
|
|
},
|
|
|
|
urlForQuery() {
|
|
return this.buildURL() + '/internal/ui/resultant-acl';
|
|
},
|
|
});
|