mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 00:02:57 +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,
|
||||
},
|
||||
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,
|
||||
completion => \&PVE::AccessControl::complete_realm,
|
||||
}),
|
||||
@ -322,7 +323,10 @@ __PACKAGE__->register_method ({
|
||||
path => 'password',
|
||||
method => 'PUT',
|
||||
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',
|
||||
['userid-param', 'self'],
|
||||
[ 'and',
|
||||
@ -460,11 +464,9 @@ __PACKAGE__->register_method({
|
||||
method => 'GET',
|
||||
description => 'Retrieve effective permissions of given user/token.',
|
||||
permissions => {
|
||||
description => "Each user/token is allowed to dump their own ".
|
||||
"permissions (or that of owned tokens). A user ".
|
||||
"can dump the permissions of another user or ".
|
||||
"their tokens if they have 'Sys.Audit' permission ".
|
||||
"on /access.",
|
||||
description => "Each user/token is allowed to dump their own permissions (or that of owned"
|
||||
." tokens). A user can dump the permissions of another user or their tokens if they"
|
||||
." have 'Sys.Audit' permission on /access.",
|
||||
user => 'all',
|
||||
},
|
||||
parameters => {
|
||||
|
Loading…
Reference in New Issue
Block a user