Commit bbc0b644 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix.

parent b9eef40c
......@@ -108,7 +108,7 @@ my $image = OSImage->Lookup($ARGV[0]);
if (!defined($image)) {
fatal("Image does not exist in the DB!");
}
if ($this_user->IsAdmin()) {
if (!$this_user->IsAdmin()) {
fatal("Only admins can deprecate an image");
}
if ($image->IsDeprecated(\$deprecated, \$message, \$iserror)) {
......
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