Changeset 11753 for trunk/admin/include/functions.php
- Timestamp:
- Jul 15, 2011, 8:56:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r11728 r11753 1783 1783 } 1784 1784 1785 /**1786 * Is the category accessible to the (Admin) user ?1787 *1788 * Note : if the user is not authorized to see this category, category jump1789 * will be replaced by admin cat_modify page1790 *1791 * @param int category id to verify1792 * @return bool1793 */1794 function cat_admin_access($category_id)1795 {1796 global $user;1797 1798 // $filter['visible_categories'] and $filter['visible_images']1799 // are not used because it's not necessary (filter <> restriction)1800 if (in_array($category_id, explode(',', $user['forbidden_categories'])))1801 {1802 return false;1803 }1804 return true;1805 }1806 1785 1807 1786 /**
Note: See TracChangeset
for help on using the changeset viewer.