Skip to content

Commit

Permalink
wip: hide clone when not allowed to access group
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 18, 2024
1 parent e9bfd13 commit b5616b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/rvd_front
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ get '/machine/view/(:id).(:type)' => sub {
if ( $domain->id_owner == $USER->id || $USER->can_start_machine($domain) ) {
if ( $domain->id_base) {
my $base = Ravada::Front::Domain->open($domain->id_base);
if (($base->show_clones || $USER->allowed_access_group($base->id))
if (($base->show_clones && $USER->allowed_access_group($base->id))
|| ($base->is_public && $USER->allowed_access($base->id))
) {
return view_machine($c);
Expand Down

0 comments on commit b5616b6

Please sign in to comment.