You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/06/26 06:37:48 UTC
[GitHub] jia3apb commented on issue #2679: Non-admin user interface reload
(ctrl+R) causes dropping session
jia3apb commented on issue #2679: Non-admin user interface reload (ctrl+R) causes dropping session
URL: https://github.com/apache/cloudstack/issues/2679#issuecomment-400195898
Problem was solved by adding **if (isAdmin()){** in cloudStack.js in line 175. Result is:
```
if (isAdmin()){
$.ajax({
type: 'GET',
url: createURL('listConfigurations'),
data: {name: 'default.ui.page.size'},
dataType: 'json',
async: false,
success: function(data, textStatus, xhr) {
if (data && data.listconfigurationsresponse && data.listconfigurationsresponse.configuration) {
var config = data.listconfigurationsresponse.configuration[0];
if (config && config.name == 'default.ui.page.size') {
pageSize = parseInt(config.value);
}
}
},
error: function(xhr) { // ignore any errors, fallback to the default
}
});
}
```
It seems like using this API method **listConfigurations** by non-admin user drop the session.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services