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

Fix call to non-existent function in Group library.

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