feat: Add API permissions
This commit is contained in:
parent
d656370aef
commit
04c2ec8ec2
4 changed files with 29 additions and 23 deletions
|
@ -50,7 +50,7 @@ export class User {
|
|||
* Activate the corresponding LDAP account.
|
||||
*/
|
||||
async activate(): Promise<void> {
|
||||
await api_request("POST", "users/activate", 204, {
|
||||
await api_request("POST", `users/${this.pk}/activate`, 204, {
|
||||
password: this.password,
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue