mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 11:58:55 +00:00
api: code-style: fix breaking up long schema descriptions
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
b8b2d85fe9
commit
84599db265
@ -220,7 +220,8 @@ __PACKAGE__->register_method ({
|
|||||||
completion => \&PVE::AccessControl::complete_username,
|
completion => \&PVE::AccessControl::complete_username,
|
||||||
},
|
},
|
||||||
realm => get_standard_option('realm', {
|
realm => get_standard_option('realm', {
|
||||||
description => "You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>\@<relam>.",
|
description => "You can optionally pass the realm using this parameter. Normally"
|
||||||
|
." the realm is simply added to the username <username>\@<relam>.",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
completion => \&PVE::AccessControl::complete_realm,
|
completion => \&PVE::AccessControl::complete_realm,
|
||||||
}),
|
}),
|
||||||
@ -322,7 +323,10 @@ __PACKAGE__->register_method ({
|
|||||||
path => 'password',
|
path => 'password',
|
||||||
method => 'PUT',
|
method => 'PUT',
|
||||||
permissions => {
|
permissions => {
|
||||||
description => "Each user is allowed to change his own password. A user can change the password of another user if he has 'Realm.AllocateUser' (on the realm of user <userid>) and 'User.Modify' permission on /access/groups/<group> on a group where user <userid> is member of.",
|
description => "Each user is allowed to change his own password. A user can change the"
|
||||||
|
." password of another user if he has 'Realm.AllocateUser' (on the realm of user"
|
||||||
|
." <userid>) and 'User.Modify' permission on /access/groups/<group> on a group where"
|
||||||
|
." user <userid> is member of.",
|
||||||
check => [ 'or',
|
check => [ 'or',
|
||||||
['userid-param', 'self'],
|
['userid-param', 'self'],
|
||||||
[ 'and',
|
[ 'and',
|
||||||
@ -460,11 +464,9 @@ __PACKAGE__->register_method({
|
|||||||
method => 'GET',
|
method => 'GET',
|
||||||
description => 'Retrieve effective permissions of given user/token.',
|
description => 'Retrieve effective permissions of given user/token.',
|
||||||
permissions => {
|
permissions => {
|
||||||
description => "Each user/token is allowed to dump their own ".
|
description => "Each user/token is allowed to dump their own permissions (or that of owned"
|
||||||
"permissions (or that of owned tokens). A user ".
|
." tokens). A user can dump the permissions of another user or their tokens if they"
|
||||||
"can dump the permissions of another user or ".
|
." have 'Sys.Audit' permission on /access.",
|
||||||
"their tokens if they have 'Sys.Audit' permission ".
|
|
||||||
"on /access.",
|
|
||||||
user => 'all',
|
user => 'all',
|
||||||
},
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
|
Loading…
Reference in New Issue
Block a user