remove todo comments

This commit is contained in:
Henry Dollman
2024-11-29 17:16:40 -05:00
parent 617a03fc15
commit 6e08507dde
5 changed files with 6 additions and 7 deletions

View File

@@ -210,7 +210,6 @@ func (h *Hub) getUserEmailMap(userIDs []string) (map[string]string, error) {
// Returns the current config.yml file as a JSON object
func (h *Hub) getYamlConfig(e *core.RequestEvent) error {
info, _ := e.RequestInfo()
// todo: test
if info.Auth == nil || info.Auth.GetString("role") != "admin" {
return apis.NewForbiddenError("Forbidden", nil)
}