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

Code cleanup in CRM_Core_Permission::check #15141

Merged
merged 1 commit into from
Aug 26, 2019

Conversation

colemanw
Copy link
Member

Overview

Just some code & comment cleanup. No functional difference before/after.

@civibot civibot bot added the master label Aug 26, 2019
@civibot
Copy link

civibot bot commented Aug 26, 2019

(Standard links)

if ($contactId) {
$userId = CRM_Core_BAO_UFMatch::getUFId($contactId);
}
$userId = CRM_Core_BAO_UFMatch::getUFId($contactId);
Copy link
Member Author

Choose a reason for hiding this comment

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

CRM_Core_BAO_UFMatch::getUFId already returns null if $contactId is empty, so this conditional was redundant.

@seamuslee001
Copy link
Contributor

Looks fine to me adding merge on pass

@seamuslee001 seamuslee001 merged commit b1d4dff into civicrm:master Aug 26, 2019
@colemanw colemanw deleted the permission branch August 26, 2019 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants