Fix call to lookup_userpriv to pass map also
authorJeff Godin <jgodin@tadl.org>
Thu, 22 Aug 2013 15:34:48 +0000 (11:34 -0400)
committerJeff Godin <jgodin@tadl.org>
Thu, 22 Aug 2013 15:34:48 +0000 (11:34 -0400)
In order to perform a successful userpriv lookup, we need to pass
lookup_userpriv the hashref to the populated map.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
iNCIPit.cgi

index e701df5..5f12c74 100644 (file)
@@ -884,7 +884,7 @@ sub lookupUser {
     my $userpriv_map = load_userpriv_map( $conf->{path}->{userpriv_map} );
 
     if ($userpriv_map) {
     my $userpriv_map = load_userpriv_map( $conf->{path}->{userpriv_map} );
 
     if ($userpriv_map) {
-        $userpriv = lookup_userpriv($userpriv);
+        $userpriv = lookup_userpriv($userpriv, $userpriv_map);
     }
 
     #} else {
     }
 
     #} else {