mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-10 13:18:28 +00:00
Fix delete permission
This commit is contained in:
parent
91a7214d1d
commit
cbefa5cdf8
@ -66,7 +66,7 @@ class WeblinkModel extends AdminModel
|
|||||||
*/
|
*/
|
||||||
protected function canDelete($record)
|
protected function canDelete($record)
|
||||||
{
|
{
|
||||||
if (empty($record->id) || $record->published != -2)
|
if (empty($record->id) || $record->state != -2)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user