-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Super admin navigation showing for regular enterprises #8546
Comments
@sinansonmez Would you be willing to have a further look at this? Your first improvement was great already! |
Hey @drummer83 Unfortunately i will not be able to work on this. I am pretty busy nowadays. |
Unless this is an easy fix I suggest we need to revert the previous change. Since this issue will now take dev time from the core team for an issue that was originally prioritised I would suggest that we need to take the fastest route to resolution. |
Sorry, I didn't realize that this issue is due to my #8395 PR. I feel responsible now 🥲 I will spare some time and try to fix it asap |
As promised, I managed to spare some time and created PR to fix the issue. Right now I am checking if user is super admin and only in that case I am showing the navigation |
Description
The super admin navigation is showing for regular enterprises if they want to create new payment or shipping options directly through the admin/enterprises page. When selecting one of the links in the navigation, the page "unauthorized" opens.
Background:
Issue #7937 reported that the super admin navigation was missing on some super admin pages. It was first addressed in #7967 and seemed to be fixed by #8395.
Expected Behavior
The super admin navigation should only show for super admins.
Actual Behaviour
The super admin navigation is displayed for regular enterprises if they want to create new payment or shipping methods directly through the admin/enterprises page by clicking 'create new'.
The pages
admin/shipping_methods/new
andadmin/payment_methods/new
seem to be affected (maybe more).Steps to Reproduce
Animated Gif/Screenshot
Click 'create new' to access the broken pages:
On this page the navigation on the right should not be displayed:
Workaround
None.
Severity
bug-s2: a non-critical feature is broken, no workaround
Users reported that they tried to create shipping and payment methods through the links in the super admin navigation - which fails due to the unauthorized page.
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: