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

Fix styles for "You do not have permission" screen #129715

Merged
merged 4 commits into from
Apr 11, 2022

Conversation

thomheymann
Copy link
Contributor

Resolves #124490

Fix styles for "You do not have permission" screen.

Before

image

After

Screenshot 2022-04-07 at 09 55 00

@thomheymann thomheymann added release_note:fix Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! auto-backport Deprecated - use backport:version if exact versions are needed v8.2.0 v8.3.0 labels Apr 7, 2022
@thomheymann thomheymann marked this pull request as ready for review April 7, 2022 09:10
@thomheymann thomheymann requested a review from a team as a code owner April 7, 2022 09:10
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@@ -178,7 +178,7 @@ export class AuthorizationService {
http.registerOnPreResponse((request, preResponse, toolkit) => {
if (preResponse.statusCode === 403 && canRedirectRequest(request)) {
const next = `${http.basePath.get(request)}${request.url.pathname}${request.url.search}`;
const body = renderToStaticMarkup(
const body = renderToString(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

emotion does not support server side rendering via renderToStaticMarkup() so using renderToString() instead.

Copy link
Member

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

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

LGTM

@thomheymann
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@thomheymann thomheymann merged commit b5dae38 into elastic:main Apr 11, 2022
kibanamachine pushed a commit that referenced this pull request Apr 11, 2022
* Fix styles for "You do not have permission" screen

* .

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b5dae38)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 11, 2022
* Fix styles for "You do not have permission" screen

* .

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b5dae38)

Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styles for "You do not have permission" screen are broken
5 participants