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

This commit is contained in:
Hadi Nategh 2014-07-14 13:30:26 +00:00
parent 94b726f883
commit 2e2d48ff1f

View File

@ -369,7 +369,7 @@ class admin_categories
$row['class'] .= ' rowNoEdit rowNoDelete '; $row['class'] .= ' rowNoEdit rowNoDelete ';
} }
// Can only edit (via context menu) categories for the selected app (backend restriction) // 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 '; $row['class'] .= ' rowNoEdit ';
} }