From: Dietmar Maurer Date: Mon, 23 Jan 2012 10:25:38 +0000 (+0100) Subject: support check and description property for permission X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=b18d17224b9888381d912ed7a4d648600783f506;ds=sidebyside support check and description property for permission And revove old path/priv properties. --- diff --git a/data/PVE/JSONSchema.pm b/data/PVE/JSONSchema.pm index 67aa587..45f02c5 100644 --- a/data/PVE/JSONSchema.pm +++ b/data/PVE/JSONSchema.pm @@ -740,14 +740,21 @@ my $method_schema = { optional => 1, additionalProperties => 0, properties => { + description => { + description => "Describe access permissions.", + optional => 1, + }, user => { - description => "A simply way to allow access for 'all' users. The special value 'arg' allows access for the user specified in the 'username' parameter. This is useful to allow access to things owned by a user, like changing the user password. Value 'world' is used to allow access without credentials.", + description => "A simply way to allow access for 'all' authenticated users. Value 'world' is used to allow access without credentials.", type => 'string', - enum => ['all', 'arg', 'world'], + enum => ['all', 'world'], optional => 1, }, - path => { type => 'string', optional => 1, requires => 'privs' }, - privs => { type => 'array', optional => 1, requires => 'path' }, + check => { + description => "Array of permission checks (prefix notation).", + type => 'array', + optional => 1 + }, }, }, match_name => {