Ignore:
Timestamp:
Jul 15, 2011, 8:56:20 PM (13 years ago)
Author:
rvelices
Message:
  • removed admin never used function cat_admin_access
  • removed obsolete known_script template block
  • added a warning on usage of is_adviser function
File:
1 edited

Legend:

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

    r11728 r11753  
    17831783}
    17841784
    1785 /**
    1786  * Is the category accessible to the (Admin) user ?
    1787  *
    1788  * Note : if the user is not authorized to see this category, category jump
    1789  * will be replaced by admin cat_modify page
    1790  *
    1791  * @param int category id to verify
    1792  * @return bool
    1793  */
    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 }
    18061785
    18071786/**
Note: See TracChangeset for help on using the changeset viewer.