creating ldap user was not setting ldapuser flag
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -124,6 +124,7 @@ func AddUser(c *gin.Context) {
|
||||
u := models.User{}
|
||||
u.UserName = input.UserName
|
||||
u.Password = input.Password
|
||||
u.LdapUser = input.LdapUser
|
||||
|
||||
// Determine which GroupId to save
|
||||
// Can be specified either by GroupName or GroupId in the request
|
||||
|
@@ -176,13 +176,8 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
|
||||
r.User.UserName = r.UserUserName
|
||||
|
||||
// For debugging purposes
|
||||
debugPrint := utils.PrintStructContents(&r, 0)
|
||||
log.Println(debugPrint)
|
||||
|
||||
//log.Printf("SecretsGetAllowed performed debug print\n")
|
||||
|
||||
// Append the secrets to the query output, don't decrypt the secrets (we didn't SELECT them anyway)
|
||||
//secretResults = append(secretResults, r)
|
||||
//debugPrint := utils.PrintStructContents(&r, 0)
|
||||
//log.Println(debugPrint)
|
||||
|
||||
// Use generics and the GetID() method on the UserSecret struct
|
||||
// to avoid adding this element to the results
|
||||
|
Reference in New Issue
Block a user