Allow existing user to be activated via API

This commit is contained in:
Toby Zerner 2016-01-04 15:43:23 +10:30
parent d83a0ee380
commit 61a29648b4

View File

@ -83,6 +83,10 @@ class EditUserHandler
}
}
if ($actor->isAdmin() && ! empty($attributes['isActivated'])) {
$user->activate();
}
if (isset($attributes['password'])) {
$this->assertPermission($canEdit);
$user->changePassword($attributes['password']);