Update all the client API endpoints to use new permissions codes

This commit is contained in:
Dane Everitt
2019-11-03 17:13:47 -08:00
parent 1153101a57
commit 867dbf3bd2
32 changed files with 141 additions and 1187 deletions

View File

@@ -14,6 +14,6 @@ class RotatePasswordRequest extends ClientApiRequest
*/
public function authorize(): bool
{
return $this->user()->can('reset-db-password', $this->getModel(Server::class));
return $this->user()->can('database.update', $this->getModel(Server::class));
}
}