Skip to content

Commit

Permalink
Fix group
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Allaigre committed Feb 19, 2018
1 parent c9c4be1 commit 0b0f9f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public void setLdapCn(String ldapCn) {
}

public GitlabAccessLevel getLdapAccess() {
return GitlabAccessLevel.fromAccessValue(ldapAccess);
return ldapAccess != null ? GitlabAccessLevel.fromAccessValue(ldapAccess) : null;
}

public void setLdapAccess(GitlabAccessLevel ldapGitlabAccessLevel) {
this.ldapAccess = ldapGitlabAccessLevel.accessValue;
this.ldapAccess = ldapGitlabAccessLevel != null ? ldapGitlabAccessLevel.accessValue : null;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.talanlabs.gitlab.api.v4.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.talanlabs.gitlab.api.v3.models.GitlabAccessLevel;

public class GitlabGroup {

Expand Down Expand Up @@ -48,11 +49,11 @@ public void setLdapCn(String ldapCn) {
this.ldapCn = ldapCn;
}

public GitlabAccessLevel getLdapAccess() {
return GitlabAccessLevel.fromAccessValue(ldapAccess);
public com.talanlabs.gitlab.api.v3.models.GitlabAccessLevel getLdapAccess() {
return ldapAccess != null ? com.talanlabs.gitlab.api.v3.models.GitlabAccessLevel.fromAccessValue(ldapAccess) : null;
}

public void setLdapAccess(GitlabAccessLevel ldapGitlabAccessLevel) {
this.ldapAccess = ldapGitlabAccessLevel.accessValue;
this.ldapAccess = ldapGitlabAccessLevel != null ? ldapGitlabAccessLevel.accessValue : null;
}
}

0 comments on commit 0b0f9f3

Please sign in to comment.