mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
- 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
This commit is contained in:
parent
62ce6788e5
commit
5869dada4c
3 changed files with 2 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue