fix: usergrant update (#533)

* fix: add grantid on update usergrant

* fix: add grantid on update usergrant
This commit is contained in:
Fabi 2020-07-28 12:29:01 +02:00 committed by GitHub
parent 0d670ab3a2
commit 461b7b23b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1607 additions and 1597 deletions

View File

@ -31,4 +31,3 @@ cockroachdb/cockroach:v19.2.2 start --insecure
#### Should show eventstore, management, admin, auth
`show databases;`

View File

@ -58,6 +58,7 @@ func userGrantUpdateToModel(u *management.UserGrantUpdate) *grant_model.UserGran
return &grant_model.UserGrant{
ObjectRoot: models.ObjectRoot{AggregateID: u.Id},
RoleKeys: u.RoleKeys,
GrantID: u.GrantId,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -2526,6 +2526,7 @@ message UserGrantUpdate {
string user_id = 1;
string id = 2;
repeated string role_keys = 3;
string grant_id = 4;
}
message UserGrantRemoveBulk {