mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-05 02:38:24 +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)
|
||||
{
|
||||
if (empty($record->id) || $record->published != -2)
|
||||
if (empty($record->id) || $record->state != -2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user