Skip to content

Commit

Permalink
Fixing issue with child elements in element model canView()
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Oct 7, 2015
1 parent aad8ba8 commit caa24ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/com_fabrik/models/element.php
Expand Up @@ -906,8 +906,8 @@ public function canView($view = 'form')

if (!empty($data) && $user->get('id') !== 0)
{
$lookUp = $params->get('view_access_user', '');
$lookUp = $formModel->getElement($lookUp, true);
$lookUpId = $params->get('view_access_user', '');
$lookUp = $formModel->getElement($lookUpId, true);

// Could be a linked parent element in which case the form doesn't contain the element whose id is $lookUpId
if (!$lookUp)
Expand Down

0 comments on commit caa24ed

Please sign in to comment.