Service Accounts: Polish service account detail page (#45846)
* ServiceAccounts: add teams to service account DTO * ServiceAccounts: Add team display to service accounts * ServiceAccounts: add AC metadata to detail route * ServiceAccounts: add role picker to detail page * ServiceAccounts: Add role to profile DTO * ServiceAccounts: remove wip mention of created by
This commit is contained in:
@@ -197,8 +197,10 @@ func (api *ServiceAccountsAPI) RetrieveServiceAccount(ctx *models.ReqContext) re
|
||||
}
|
||||
}
|
||||
|
||||
saIDString := strconv.FormatInt(serviceAccount.Id, 10)
|
||||
metadata := api.getAccessControlMetadata(ctx, map[string]bool{saIDString: true})
|
||||
serviceAccount.AvatarUrl = dtos.GetGravatarUrlWithDefault("", serviceAccount.Name)
|
||||
|
||||
serviceAccount.AccessControl = metadata[saIDString]
|
||||
return response.JSON(http.StatusOK, serviceAccount)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user