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

Prevent currently logged user deletion #2323

Merged
merged 4 commits into from
Jan 12, 2015

Conversation

Zales0123
Copy link
Member

No description provided.

pjedrzejewski pushed a commit that referenced this pull request Jan 12, 2015
Prevent currently logged user deletion
@pjedrzejewski pjedrzejewski merged commit ee12507 into Sylius:master Jan 12, 2015
@pjedrzejewski
Copy link
Member

Thank you Mateusz! 👍

);
}

if ($this->securityContext->getToken()->getUsername() === $user->getUsernameCanonical()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is wrong, username is something that can be changed, you must check identifier not username!

Copy link
Member

Choose a reason for hiding this comment

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

@Zales0123 Yeah, let's check the id, could you update this in a separate PR, thanks!

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.

None yet

3 participants