summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi8
1 files changed, 7 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 4bb65c152..555b017a8 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -369,7 +369,13 @@ sub DoPermissions {
push(@set_bits, {"desc" => $desc, "name" => $nam});
}
}
-
+
+ # If the user has product specific privileges, inform him about that.
+ foreach my $privs (PER_PRODUCT_PRIVILEGES) {
+ next if $user->in_group($privs);
+ $vars->{"local_$privs"} = $user->get_products_by_permission($privs);
+ }
+
$vars->{'has_bits'} = \@has_bits;
$vars->{'set_bits'} = \@set_bits;
}