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

Redirect to index when user does not have permission to access a page #36623

Merged
merged 1 commit into from Jan 6, 2024

Conversation

vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Jan 5, 2024

When a user access a page they dont have access (and is logged in), they get redirected to the login page that is then automatically redirected to index page because the user is already logged in. It does not make sense. It should be redirected directly to the index page. This PR removes the redirection to the login page and redirects directly to the index page.

The user is still redirected to the login page in case they are not logged in.

The scenario in which the user does not have permission to access the index page is already taken care of.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Jan 5, 2024
Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

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

👍

@hussein-awala hussein-awala added this to the Airflow 2.8.1 milestone Jan 6, 2024
@hussein-awala hussein-awala added the type:bug-fix Changelog: Bug Fixes label Jan 6, 2024
@potiuk potiuk merged commit 535c8be into apache:main Jan 6, 2024
50 checks passed
@vincbeck vincbeck deleted the vincbeck/acccess_denied_redirect branch January 8, 2024 17:11
ephraimbuddy pushed a commit that referenced this pull request Jan 11, 2024
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants