[pve-devel] r5570 - pve-access-control/trunk/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Feb 21 07:53:10 CET 2011


Author: dietmar
Date: 2011-02-21 07:53:10 +0100 (Mon, 21 Feb 2011)
New Revision: 5570

Modified:
   pve-access-control/trunk/PVE/API2/Role.pm
Log:
sort privs


Modified: pve-access-control/trunk/PVE/API2/Role.pm
===================================================================
--- pve-access-control/trunk/PVE/API2/Role.pm	2011-02-21 06:32:52 UTC (rev 5569)
+++ pve-access-control/trunk/PVE/API2/Role.pm	2011-02-21 06:53:10 UTC (rev 5570)
@@ -40,7 +40,7 @@
 	my $usercfg = cfs_read_file("user.cfg");
  
 	foreach my $role (keys %{$usercfg->{roles}}) {
-	    my $privs = join(',', keys %{$usercfg->{roles}->{$role}});
+	    my $privs = join(',', sort keys %{$usercfg->{roles}->{$role}});
 	    push @$res, { id => $role, privs => $privs };
 	}
 



More information about the pve-devel mailing list