fix: usergrant (#650)

This commit is contained in:
Fabi 2020-08-27 14:44:52 +02:00 committed by GitHub
parent ba123393be
commit d233fb6610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const (
UserGrantKeyID = "id" UserGrantKeyID = "id"
UserGrantKeyUserID = "user_id" UserGrantKeyUserID = "user_id"
UserGrantKeyProjectID = "project_id" UserGrantKeyProjectID = "project_id"
UserGrantKeyGrantID = "grant_id"
UserGrantKeyResourceOwner = "resource_owner" UserGrantKeyResourceOwner = "resource_owner"
UserGrantKeyState = "state" UserGrantKeyState = "state"
UserGrantKeyOrgName = "org_name" UserGrantKeyOrgName = "org_name"

View File

@ -60,7 +60,7 @@ func (key UserGrantSearchKey) ToColumnName() string {
case grant_model.UserGrantSearchKeyResourceOwner: case grant_model.UserGrantSearchKeyResourceOwner:
return UserGrantKeyResourceOwner return UserGrantKeyResourceOwner
case grant_model.UserGrantSearchKeyGrantID: case grant_model.UserGrantSearchKeyGrantID:
return UserGrantKeyID return UserGrantKeyGrantID
case grant_model.UserGrantSearchKeyOrgName: case grant_model.UserGrantSearchKeyOrgName:
return UserGrantKeyOrgName return UserGrantKeyOrgName
case grant_model.UserGrantSearchKeyRoleKey: case grant_model.UserGrantSearchKeyRoleKey: