Ignore:
Timestamp:
Jul 25, 2011, 8:06:48 PM (13 years ago)
Author:
rvelices
Message:

partially revert one of my previous commits where I removed an obsolete function (was used directly in the tpls:-( )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r11827 r11828  
    17221722}
    17231723
     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 */
     1733function 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}
    17241745
    17251746/**
Note: See TracChangeset for help on using the changeset viewer.