marklogic-community / data-explorer

Data Explorer Tool
Other
15 stars 4 forks source link

wizard-user cannot access 'Edit config' menu to manage queries and views #131

Closed cskeefer closed 6 years ago

cskeefer commented 6 years ago

When logging in as wizard-user, if you click 'Edit config' in the nav bar, you are taken back to the log in page. The reason appears to be because the call to get the list of queries (http://ml9:7777/api/crud/listQueries?pageSize=10&startOffset=1) fails with a 401. Workaround is to add 'data-explorer-search-role' to the wizard-user user.

The code to get the list of queries checks to see if the user has the data-explorer-search-role. Seems like it should check to see if the user has the data-explorer-wizard-role instead?

cskeefer commented 6 years ago

Pull request https://github.com/marklogic-community/data-explorer/pull/132 handled this issue and was approved and merged