correct variable

This commit is contained in:
andrepereiradasilva 2016-08-07 08:24:33 +01:00 committed by GitHub
parent 70012793dc
commit 0af9354e1e
1 changed files with 2 additions and 2 deletions

View File

@ -79,10 +79,10 @@ class WeblinksControllerWeblink extends JControllerForm
$user = JFactory::getUser();
// Check if can edit own core.edit.own.
$canEditOwn = $user->authorise('core.edit.own', $this->option . '.category.' . (int) $record->catid) && $item->created_by == $user->id;
$canEditOwn = $user->authorise('core.edit.own', $this->option . '.category.' . (int) $item->catid) && $item->created_by == $user->id;
// Check the category core.edit permissions.
return $canEditOwn || $user->authorise('core.edit', $this->option . '.category.' . (int) $record->catid);
return $canEditOwn || $user->authorise('core.edit', $this->option . '.category.' . (int) $item->catid);
}
/**