Fix alter user query
Reviewers: msantl Reviewed By: msantl Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1519
This commit is contained in:
parent
6546d1de07
commit
5d73c64fd8
@ -3929,7 +3929,7 @@ class ModifyUserCursor : public Cursor {
|
||||
}
|
||||
} else {
|
||||
// Update an existing user.
|
||||
auto user = ctx.auth_->GetUser(self_.username());
|
||||
user = ctx.auth_->GetUser(self_.username());
|
||||
if (!user) {
|
||||
throw QueryRuntimeException(
|
||||
fmt::format("User '{}' doesn't exist!", self_.username()));
|
||||
|
Loading…
Reference in New Issue
Block a user