Commit 9e1ce1c7 authored by Leigh B Stoller's avatar Leigh B Stoller

Add shared() method for image aliases.

parent d25adce9
......@@ -1586,6 +1586,20 @@ sub AccessCheck($$$)
return $allowed;
}
# All images have to be shared.
sub shared($)
{
my ($self) = @_;
my $shared = 1;
my $coderef = sub {
$shared = 0
if (!$_[0]->shared());
return 0;
};
$self->ImageIterate($coderef);
return $shared;
}
#
# Get the combined type list.
#
......
Markdown is supported
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