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

Added a @notImpersonating blade directive #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

otrigg
Copy link

@otrigg otrigg commented Jan 10, 2021

I needed a "@notImpersonating" blade directive.

I found this enhancement proposal and I decided to contribute.

@MarceauKa
Copy link
Member

Hi @otrigg, thank you for your PR. Let me check that and I'll merge it :)

$this->assertStringNotContainsString('Not impersonating this user', $this->view);
$this->admin->leaveImpersonation();
$this->logout();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The other tests don't call ->impersonate and ->leaveImpersonation, so I wonder if it would make sense to add another assertion to ensure that after leaving impersonation the Not Impersonating message re-appears?

@DanielMalmgren
Copy link

This is something that really would be useful. Any chance of it getting merged?

@koencg
Copy link

koencg commented Feb 21, 2022

Hi, what is blocking this merge? Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants