[pve-devel] r5527 - pve-access-control/trunk/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Feb 15 12:34:06 CET 2011


Author: dietmar
Date: 2011-02-15 12:34:06 +0100 (Tue, 15 Feb 2011)
New Revision: 5527

Modified:
   pve-access-control/trunk/PVE/ACLCache.pm
   pve-access-control/trunk/PVE/AccessControl.pm
Log:
removed dead code


Modified: pve-access-control/trunk/PVE/ACLCache.pm
===================================================================
--- pve-access-control/trunk/PVE/ACLCache.pm	2011-02-15 11:22:28 UTC (rev 5526)
+++ pve-access-control/trunk/PVE/ACLCache.pm	2011-02-15 11:34:06 UTC (rev 5527)
@@ -20,13 +20,13 @@
 my $compile_acl = sub {
     my ($self, $user) = @_;
 
+    my $res = {};
+    my $cfg = $self->{cfg};
+
     if ($user eq 'root') { # root can do anything
-	return {'/' => 'Administrator'};
+	return {'/' => $cfg->{roles}->{'Administrator'}};
     } 
 
-    my $res = {};
-    my $cfg = $self->{cfg};
-
     foreach my $path (sort keys %{$cfg->{acl}}) {
 	my @ra = PVE::AccessControl::roles($cfg, $user, $path);
 

Modified: pve-access-control/trunk/PVE/AccessControl.pm
===================================================================
--- pve-access-control/trunk/PVE/AccessControl.pm	2011-02-15 11:22:28 UTC (rev 5526)
+++ pve-access-control/trunk/PVE/AccessControl.pm	2011-02-15 11:34:06 UTC (rev 5527)
@@ -337,12 +337,6 @@
     return $username;
 }
 
-sub create_ticket {
-    my ($ticket, @param) = @_;
-
-    return secure_exec($ticket, 'create_ticket', [ @param ]);
-}
-
 sub delete_shadow_password {
 
     my ($username) = @_;




More information about the pve-devel mailing list