Changeset 2777 for trunk/admin/include
- Timestamp:
- Oct 19, 2008, 5:47:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r2678 r2777 1900 1900 } 1901 1901 } 1902 1903 /** 1904 * Is the category accessible to the (Admin) user ? 1905 * 1906 * Note : if the user is not authorized to see this category, category jump 1907 * will be replaced by admin cat_modify page 1908 * 1909 * @param int category id to verify 1910 * @return bool 1911 */ 1912 function cat_admin_access($category_id) 1913 { 1914 global $user; 1915 1916 // $filter['visible_categories'] and $filter['visible_images'] 1917 // are not used because it's not necessary (filter <> restriction) 1918 if (in_array($category_id, explode(',', $user['forbidden_categories']))) 1919 { 1920 return false; 1921 } 1922 return true; 1923 } 1924 1902 1925 ?>
Note: See TracChangeset
for help on using the changeset viewer.