Commit 24aa6bf9 authored by Leigh Stoller's avatar Leigh Stoller

Fix call to non-existent function in Group library.

parent 116bcd68
......@@ -315,7 +315,7 @@ if (!$project->AccessCheck($this_user, TB_PROJECT_MAKEIMAGEID())) {
my $group;
if (exists($newimageid_args{"gid"})) {
my $gid = $newimageid_args{"gid"};
$group = Group->LookupSubgroupByName($gid);
$group = Group->LookupByPidGid($project->pid(), $gid);
if (!defined($group)) {
UserError("Group: No such group $gid");
}
......
......@@ -347,7 +347,7 @@ if (!defined($project)) {
my $group;
if (exists($newimageid_args{"gid"})) {
my $gid = $newimageid_args{"gid"};
$group = Group->LookupSubgroupByName($gid);
$group = Group->LookupByPidGid($project->pid(), $gid);
if (!defined($group)) {
UserError("Group: No such group $gid");
}
......
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