Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants