Put nm readonlys into nm namespace to avoid conflict with add button

This commit is contained in:
Nathan Gray 2015-10-26 18:32:40 +00:00
parent 22210227b7
commit 035570018a

View File

@ -418,9 +418,9 @@ class admin_categories
{
$row['class'] .= ' rowNoEdit ';
}
$readonlys["edit[$row[id]]"] = !self::$acl_edit;
$readonlys["add[$row[id]]"] = !self::$acl_add_sub;
$readonlys["delete[$row[id]]"] = !self::$acl_delete;
$readonlys['nm']["edit[$row[id]]"] = !self::$acl_edit;
$readonlys['nm']["add[$row[id]]"] = !self::$acl_add_sub;
$readonlys['nm']["delete[$row[id]]"] = !self::$acl_delete;
}
if (true) $rows = $count <= $query['num_rows'] ? array_values($rows) : array_slice($rows, $query['start'], $query['num_rows']);
// make appname available for actions