--- loncom/lonnet/perl/lonnet.pm	2014/12/11 02:07:09	1.1274
+++ loncom/lonnet/perl/lonnet.pm	2014/12/16 19:57:56	1.1275
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1274 2014/12/11 02:07:09 raeburn Exp $
+# $Id: lonnet.pm,v 1.1275 2014/12/16 19:57:56 musolffc Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5105,7 +5105,7 @@ sub privileged {
         my %rolesdump = &dump("roles", $domain, $username) or return 0;
         my $now = time;
 
-        for my $role (@rolesdump{grep { ! /^rolesdef_/ } keys(%rolesdump})) {
+        for my $role (@rolesdump{grep { ! /^rolesdef_/ } keys(%rolesdump)}) {
             my ($trole, $tend, $tstart) = split(/_/, $role);
             if (grep(/^\Q$trole\E$/,@{$roles})) {
                 return 1 unless ($tend && $tend < $now)