32
1
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:
Tuan Pham Ngoc 2021-08-11 12:42:57 +07:00
parent 91a7214d1d
commit cbefa5cdf8

View File

@ -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;
} }