Skip to content
Snippets Groups Projects
Commit 572b1b8d authored by colemanw's avatar colemanw
Browse files

Change permission for viewing a profile

parent 4bc223d1
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class CRM_UF_Form_Inline_PreviewById extends CRM_UF_Form_AbstractPreview {
*/
function preProcess() {
// Inline forms don't get menu-level permission checks
if (!CRM_Core_Permission::check('administer CiviCRM')) {
if (!CRM_Core_Permission::check('access CiviCRM')) {
CRM_Core_Error::fatal(ts('Permission denied'));
}
$gid = CRM_Utils_Request::retrieve('id', 'Positive');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment