mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +03:00
Fix for non admin user log into Sunstone
This commit is contained in:
parent
c557515575
commit
3b436da4d8
@ -920,12 +920,15 @@ function setup_add_rp_dialog(group){
|
||||
|
||||
add_it = true;
|
||||
|
||||
$.each(providers_array, function(index, provider){
|
||||
if (provider.ZONE_ID==zone_id && provider.CLUSTER_ID == key)
|
||||
{
|
||||
add_it = false;
|
||||
}
|
||||
});
|
||||
if(providers_array)
|
||||
{
|
||||
$.each(providers_array, function(index, provider){
|
||||
if (provider.ZONE_ID==zone_id && provider.CLUSTER_ID == key)
|
||||
{
|
||||
add_it = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (add_it)
|
||||
{
|
||||
|
@ -212,7 +212,8 @@ helpers do
|
||||
env['rack.session.options'][:expire_after] = 30*60*60*24-1
|
||||
end
|
||||
|
||||
rc = OpenNebula::System.new(client).get_configuration
|
||||
serveradmin_client = $cloud_auth.client()
|
||||
rc = OpenNebula::System.new(serveradmin_client).get_configuration
|
||||
return [500, rc.message] if OpenNebula.is_error?(rc)
|
||||
return [500, "Couldn't find out zone identifier"] if !rc['FEDERATION/ZONE_ID']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user