Commit 0e1577e6 authored by Roberto P. Rubio's avatar Roberto P. Rubio
Browse files

Espacios en blanco

parent 9fa541c3
......@@ -614,7 +614,7 @@ get '/machine/screenshot/(:id).(:type)' => sub {
};
get '/machine/copy_screenshot/(:id).(:type)' => sub {
my $c = shift;
my $c = shift;
my $domain = _search_requested_machine($c);
return access_denied($c) if (!$USER->is_admin() || $domain->id_base() == NULL );
return copy_screenshot($c);
......@@ -1283,15 +1283,15 @@ get '/machine/hardware/remove/(#id_domain)/(#hardware)/(#index)' => sub {
return access_denied($c)
unless $USER->id == $domain->id_owner || $USER->is_admin;
my $req = Ravada::Request->remove_hardware(uid => $USER->id
, id_domain => $domain_id
, name => $hardware
, index => $index
);
$RAVADA->wait_request($req,60);
return $c->render( json => { ok => "Hardware Modified" });
};
......@@ -1688,7 +1688,7 @@ sub render_machines_user {
sub quick_start_domain {
my ($c, $id_base, $name) = @_;
my $anonymous = (shift or 0);
return $c->redirect_to('/login') if !$USER;
confess "Missing id_base" if !defined $id_base;
......@@ -2106,7 +2106,7 @@ sub manage_machine {
$msg .= " Changes will apply on next start." if $domain->is_active;
push @messages,($msg);
push @reqs,($req2);
}
$c->stash(cur_driver => \%cur_driver);
......
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