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

Authors shown as "Anonymous" on the project list page when full author name should be visible #97

Open
EL246 opened this issue Jun 13, 2019 · 1 comment
Labels
back-end Java, Spring, etc bug Something isn't working

Comments

@EL246
Copy link
Collaborator

EL246 commented Jun 13, 2019

@j9peters
A user with private profile visibility cannot view their own name in project listings when they are logged in. "Anonymous" is shown instead.

In the following code from DisplayAuthor.java, the anonymous() function is always called regardless of whether the requestingUser is the sourceUser or not.

        switch (sourceUser.getProfileVisibility()) {
            case PRIVATE:
                if (sourceUser == requestingUser) {
                    return useInternal(sourceUser, null);
                } else {
                    return anonymous();
                }
EL246 added a commit to j9peters/recurse-community-portfolio that referenced this issue Jun 13, 2019
… in project listings when they are logged in.

resolves issue jasonaowen#97 Authors shown as "Anonymous" on the project list page when full author name should be visible

Co-authored-by: j9peters <[email protected]>
@jasonaowen jasonaowen added back-end Java, Spring, etc bug Something isn't working labels Jun 14, 2019
@jasonaowen
Copy link
Owner

Good catch!

j9peters added a commit to j9peters/recurse-community-portfolio that referenced this issue Jun 19, 2019
… in project listings when they are logged in.

resolves issue jasonaowen#97 Authors shown as "Anonymous" on the project list page when full author name should be visible

Co-authored-by: j9peters <[email protected]>
j9peters added a commit to j9peters/recurse-community-portfolio that referenced this issue Jul 31, 2019
… in project listings when they are logged in.

resolves issue jasonaowen#97 Authors shown as "Anonymous" on the project list page when full author name should be visible

Co-authored-by: j9peters <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Java, Spring, etc bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants