mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-27 22:38:28 +00:00
correct variable
This commit is contained in:
parent
70012793dc
commit
0af9354e1e
@ -79,10 +79,10 @@ class WeblinksControllerWeblink extends JControllerForm
|
|||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// Check if can edit own core.edit.own.
|
// 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.
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user