]> git.proxmox.com Git - pve-access-control.git/commitdiff
fix syntax
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 9 Feb 2012 10:15:59 +0000 (11:15 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 9 Feb 2012 10:15:59 +0000 (11:15 +0100)
PVE/RPCEnvironment.pm

index 8cafdd182978c706b878869e724d2bc69052cbc2..d14104a7cacfb4624d77e6555871b7276a94147e 100644 (file)
@@ -282,7 +282,7 @@ sub check_vm_perm {
     return $self->check_full($user, "/vms/$vmid", $privs, $any, $noerr);
 };
 
     return $self->check_full($user, "/vms/$vmid", $privs, $any, $noerr);
 };
 
-sub check_volume_access = sub {
+sub check_volume_access {
     my ($self, $user, $storecfg, $vmid, $volid) = @_;
 
     # test if we have read access to volid
     my ($self, $user, $storecfg, $vmid, $volid) = @_;
 
     # test if we have read access to volid