Commit 495b17d0 authored by Roberto P. Rubio's avatar Roberto P. Rubio
Browse files

Espacios en blanco

parent 0e1577e6
......@@ -224,19 +224,19 @@ sub init_available_actions($user, $m) {
$m->{can_start} = 0;
$m->{can_start} = 1 if $m->{id_owner} == $user->id || $user->is_admin;
$m->{can_reboot} = $m->{can_shutdown} && $m->{can_start};
$m->{can_reboot} = $m->{can_shutdown} && $m->{can_start};
$m->{can_view} = 0;
$m->{can_view} = 1 if $m->{id_owner} == $user->id || $user->is_admin;
$m->{can_manage} = ( $user->can_manage_machine($m->{id}) or 0);
eval {
$m->{can_change_settings} = ( $user->can_change_settings($m->{id}) or 0);
};
die $@ if $@ && $@ !~ /Unknown domain/;
$m->{can_manage} = ( $user->can_manage_machine($m->{id}) or 0);
eval {
$m->{can_change_settings} = ( $user->can_change_settings($m->{id}) or 0);
};
die $@ if $@ && $@ !~ /Unknown domain/;
$m->{can_hibernate} = 0;
$m->{can_hibernate} = 1 if $user->can_shutdown($m->{id})
$m->{can_hibernate} = 1 if $user->can_shutdown($m->{id})
&& !$m->{is_volatile};
}
......
......@@ -1290,7 +1290,7 @@ get '/machine/hardware/remove/(#id_domain)/(#hardware)/(#index)' => sub {
, index => $index
);
$RAVADA->wait_request($req,60);
$RAVADA->wait_request($req,60);
return $c->render( json => { ok => "Hardware Modified" });
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment