[pve-devel] r4994 - pve-manager/pve2/lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Aug 13 09:43:36 CEST 2010


Author: dietmar
Date: 2010-08-13 07:43:36 +0000 (Fri, 13 Aug 2010)
New Revision: 4994

Modified:
   pve-manager/pve2/lib/PVE/API2/AccessControl.pm
Log:
use new ACL class


Modified: pve-manager/pve2/lib/PVE/API2/AccessControl.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/AccessControl.pm	2010-08-13 07:42:58 UTC (rev 4993)
+++ pve-manager/pve2/lib/PVE/API2/AccessControl.pm	2010-08-13 07:43:36 UTC (rev 4994)
@@ -8,6 +8,9 @@
 
 use PVE::RESTHandler;
 use PVE::API2::User;
+use PVE::API2::Group;
+use PVE::API2::Role;
+use PVE::API2::ACL;
 
 use base qw(PVE::RESTHandler);
 
@@ -15,12 +18,23 @@
     subclass => "PVE::API2::User",  
     path => 'users',
 });
+
 __PACKAGE__->register_method ({
     subclass => "PVE::API2::Group",  
     path => 'groups',
 });
 
 __PACKAGE__->register_method ({
+    subclass => "PVE::API2::Role",  
+    path => 'roles',
+});
+
+__PACKAGE__->register_method ({
+    subclass => "PVE::API2::ACL",  
+    path => 'acl',
+});
+
+__PACKAGE__->register_method ({
     name => 'index', 
     path => '', 
     method => 'GET',




More information about the pve-devel mailing list