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

3686 - fix for error after clicking approve request for a new partner… #3965

Conversation

thebkbuffalo
Copy link
Contributor

…. fixed by writing a block to supply organization information for links used in the sidebar menu as opposed to accessing organization data directly from the user which was causing the break. tests also added

3686 - added a comment to method written in the application controller

Resolves #3686

Description

Issue with this was that the shared sidebar menu was looking for an associated organization for the current_user. The problem being not all users have associated organizations via roles. I wasn't sure about forcing an associated organization role onto a user that maybe shouldn't have that association, so I added a method that returns the associated organization either directly from the user via roles, or through the users associated partner.

List any dependencies that are required for this change. (gems, js libraries, etc.)

Include anything else we should know about. -->

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Yes.

Screenshots

…. fixed by writing a block to supply organization information for links used in the sidebar menu as opposed to accessing organization data directly from the user which was causing the break. tests also added

3686 - added a comment to method written in the application controller
Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

While this technically removes the error, it does it by showing the partner user a number of routes that they should not have access to. We need to actually handle the error and redirect the partner to an error page, directing them to log in as the organization user.

@thebkbuffalo
Copy link
Contributor Author

@dorner I gotcha. My apologies, I misunderstood what was being asked for. I'll rework this in the way being requested.

@cielf
Copy link
Collaborator

cielf commented Feb 27, 2024

It looks to me like this was superseded by a later PR. Closing.

@cielf cielf closed this Feb 27, 2024
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.

[Bug] Fix nasty error when clicking on partner approval request email as partner
3 participants