Changeset 11828 for trunk/admin/include/functions.php
- Timestamp:
- Jul 25, 2011, 8:06:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r11827 r11828 1722 1722 } 1723 1723 1724 /** 1725 * Is the category accessible to the (Admin) user ? 1726 * 1727 * Note : if the user is not authorized to see this category, category jump 1728 * will be replaced by admin cat_modify page 1729 * 1730 * @param int category id to verify 1731 * @return bool 1732 */ 1733 function cat_admin_access($category_id) 1734 { 1735 global $user; 1736 1737 // $filter['visible_categories'] and $filter['visible_images'] 1738 // are not used because it's not necessary (filter <> restriction) 1739 if (in_array($category_id, explode(',', $user['forbidden_categories']))) 1740 { 1741 return false; 1742 } 1743 return true; 1744 } 1724 1745 1725 1746 /**
Note: See TracChangeset
for help on using the changeset viewer.