Disable "Change Owner" item from category context menu if it is a private one

This commit is contained in:
Hadi Nategh 2014-07-14 15:59:56 +00:00
parent 92e8ce7d0d
commit 37275f253b

View File

@ -369,7 +369,7 @@ class admin_categories
$row['class'] .= ' rowNoEdit rowNoDelete ';
}
// Can only edit (via context menu) categories for the selected app (backend restriction)
if($row['appname'] != $query['appname'])
if($row['appname'] != $query['appname'] || (array_sum($row['owner']) > 0))
{
$row['class'] .= ' rowNoEdit ';
}