Skip to content

Commit

Permalink
REF minor code readability improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Feb 13, 2019
1 parent a50321d commit 83564f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CRM/Contact/Page/View/UserDashBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,12 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page {
public function __construct() {
parent::__construct();

$check = CRM_Core_Permission::check('access Contact Dashboard');

if (!$check) {
if (!CRM_Core_Permission::check('access Contact Dashboard')) {
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/dashboard', 'reset=1'));
}

$this->_contactId = CRM_Utils_Request::retrieve('id', 'Positive', $this);

$session = CRM_Core_Session::singleton();
$userID = $session->get('userID');
$userID = CRM_Core_Session::singleton()->getLoggedInContactID();

$userChecksum = $this->getUserChecksum();
$validUser = FALSE;
Expand Down

0 comments on commit 83564f9

Please sign in to comment.