Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field "is_auditor" in user #1981

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

thomasboni
Copy link
Contributor

No description provided.

Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thomasboni 👍🏻

@svanharmelen svanharmelen merged commit ca1a4db into xanzy:main Aug 7, 2024
1 check failed
@@ -103,6 +103,7 @@ func TestGetUserAdmin(t *testing.T) {
LastActivityOn: &lastActivityOn,
ColorSchemeID: 2,
IsAdmin: true,
IsAuditor: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess you didn't test this 😞 Will add a commit to fix it...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, in my case it worked because I used an administrator user. I haven't seens the different behavior on this param between request from admin or non admin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that's the same behavior for is_admin, that is already present

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, the fix was easy.

See #1982 for the details, but running go test./... to run the tests failed without this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants