Skip to content

Commit

Permalink
Merge pull request #247 from elplatt/issue242
Browse files Browse the repository at this point in the history
Add contact_view check to devel module contact page, close #242.
  • Loading branch information
chris18890 committed Feb 22, 2014
2 parents 0c0e331 + 1370036 commit 72e44ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crm/modules/devel/devel.inc.php
Expand Up @@ -42,6 +42,9 @@ function devel_page (&$page_data, $page_name) {
if (empty($cid)) {
return;
}
if (!user_access('contact_view')) {
return;
}
$contact = crm_get_one('contact', array('cid'=>$cid));
// Add devel tab
page_add_content_top($page_data, '<pre>' . print_r($contact, true) . '</pre>', 'Devel');
Expand Down

0 comments on commit 72e44ee

Please sign in to comment.