diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-07-15 18:56:20 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-07-15 18:56:20 +0000 |
commit | 5869dada4c169f167205a2d23f274e976d5e323e (patch) | |
tree | f15d99e9378c6d8cd754fa5ea0fa1cf0d822896b /admin/include/functions.php | |
parent | 62ce6788e52dc97ea7379e41ce353c8c7281d520 (diff) |
- removed admin never used function cat_admin_access
- removed obsolete known_script template block
- added a warning on usage of is_adviser function
git-svn-id: http://piwigo.org/svn/trunk@11753 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r-- | admin/include/functions.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 08df604e3..cd03a662e 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1782,27 +1782,6 @@ SELECT id } } -/** - * Is the category accessible to the (Admin) user ? - * - * Note : if the user is not authorized to see this category, category jump - * will be replaced by admin cat_modify page - * - * @param int category id to verify - * @return bool - */ -function cat_admin_access($category_id) -{ - global $user; - - // $filter['visible_categories'] and $filter['visible_images'] - // are not used because it's not necessary (filter <> restriction) - if (in_array($category_id, explode(',', $user['forbidden_categories']))) - { - return false; - } - return true; -} /** * Retrieve data from external URL |