diff options
Diffstat (limited to '')
-rw-r--r-- | admin/site_update.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/admin/site_update.php b/admin/site_update.php index 5b90729b8..3a530dd6e 100644 --- a/admin/site_update.php +++ b/admin/site_update.php @@ -314,6 +314,14 @@ SELECT id_uppercat, MAX(rank)+1 AS next_rank mass_inserts(CATEGORIES_TABLE, $dbfields, $inserts); } + // add default permissions to categories + $category_ids = array(); + foreach ($inserts as $category) + { + $category_ids[] = $category['id']; + } + add_permission_on_category($category_ids, get_admins()); + $counts['new_categories'] = count($inserts); } |