You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Wei Zhou (JIRA)" <ji...@apache.org> on 2015/12/09 11:55:11 UTC
[jira] [Comment Edited] (CLOUDSTACK-9131) User/Domain admin cannot
login to UI
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048477#comment-15048477 ]
Wei Zhou edited comment on CLOUDSTACK-9131 at 12/9/15 10:55 AM:
----------------------------------------------------------------
I have no testing env for master.
you might apply this simple change:
```
diff --git a/ui/plugins/quota/quota.js b/ui/plugins/quota/quota.js
index 6051b2c..f066d69 100644
--- a/ui/plugins/quota/quota.js
+++ b/ui/plugins/quota/quota.js
@@ -25,6 +25,9 @@
id: 'quota',
title: 'Quota',
preFilter: function(args) {
+ if (!isAdmin()) {
+ return false;
+ }
var retval = $.ajax({
url: createURL("listConfigurations&name=quota.enable.service"),
async: false
```
was (Author: weizhou):
I have no testing env for master.
you might apply this simple change:
diff --git a/ui/plugins/quota/quota.js b/ui/plugins/quota/quota.js
index 6051b2c..f066d69 100644
--- a/ui/plugins/quota/quota.js
+++ b/ui/plugins/quota/quota.js
@@ -25,6 +25,9 @@
id: 'quota',
title: 'Quota',
preFilter: function(args) {
+ if (!isAdmin()) {
+ return false;
+ }
var retval = $.ajax({
url: createURL("listConfigurations&name=quota.enable.service"),
async: false
> User/Domain admin cannot login to UI
> ------------------------------------
>
> Key: CLOUDSTACK-9131
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9131
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: UI
> Affects Versions: 4.7.0
> Reporter: Remi Bergsma
> Assignee: Abhinandan Prateek
> Priority: Blocker
> Attachments: Screen Shot 2015-12-09 at 11.08.47.png
>
>
> The Quota plugin checks whether the plugin is enabled but the call it uses it only available for root admins. As a result, no one can login except for root admins.
> Pinging [~bhaisaab]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)