mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-13 21:30:11 +00:00
api: password: use singular they pronoun
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
e0e7fc67ae
commit
ef93b299eb
@ -323,8 +323,8 @@ __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"
|
description => "Each user is allowed to change their own password. A user can change the"
|
||||||
." password of another user if he has 'Realm.AllocateUser' (on the realm of user"
|
." password of another user if they have 'Realm.AllocateUser' (on the realm of user"
|
||||||
." <userid>) and 'User.Modify' permission on /access/groups/<group> on a group where"
|
." <userid>) and 'User.Modify' permission on /access/groups/<group> on a group where"
|
||||||
." user <userid> is member of. For the PAM realm, a password change does not take "
|
." user <userid> is member of. For the PAM realm, a password change does not take "
|
||||||
." effect cluster-wide, but only applies to the local node.",
|
." effect cluster-wide, but only applies to the local node.",
|
||||||
@ -371,7 +371,7 @@ __PACKAGE__->register_method ({
|
|||||||
} else {
|
} else {
|
||||||
if ($authuser eq $userid) {
|
if ($authuser eq $userid) {
|
||||||
$rpcenv->check_user_enabled($userid);
|
$rpcenv->check_user_enabled($userid);
|
||||||
# OK - each user can change its own password
|
# OK - each user can change their own password
|
||||||
} else {
|
} else {
|
||||||
# only root may change root password
|
# only root may change root password
|
||||||
raise_perm_exc() if $userid eq 'root@pam';
|
raise_perm_exc() if $userid eq 'root@pam';
|
||||||
|
Loading…
Reference in New Issue
Block a user