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

Task #187778 chore: Fix security issue on plugin users #36

Open
wants to merge 1 commit into
base: release-2.1.0
Choose a base branch
from

Conversation

tushar33
Copy link

@tushar33 tushar33 commented Sep 1, 2022

No description provided.

$xidentifier = $input->server->get('HTTP_X_IDENTIFIER', '', 'String');
$user = Factory::getUser();

if (!$user->authorise('core.admin') && $id != $user->id)
Copy link
Member

Choose a reason for hiding this comment

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

Should this be hardcoded to core.admin ? I suggest you check for the com_users create & edit permission based on if it's a create or edit user case.

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.

2 participants