Commit 1bc38bf1 authored by Kimia Mirehbar's avatar Kimia Mirehbar Committed by Francesc Guasch
Browse files

update(user cannot start machine without grant)

parent 867ff89a
......@@ -321,7 +321,8 @@ get '/machine/view/(:id).(:type)' => sub {
};
get '/machine/clone/(:id).(:type)' => sub {
my $c = shift;
my $c = shift;
return access_denied($c) if !$USER->can_clone();
return clone_machine($c);
};
......
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