Ignore:
Timestamp:
Dec 25, 2004, 8:33:36 PM (19 years ago)
Author:
plg
Message:
  • user permissions ask update at each admin page generation. Table user_forbidden must be updated only if current user is not in administrative section
  • bug fixed : category.php, error on page title when non category selected
  • admin/search : bug on variable $PHP_SELF, replaced by $_SERVERPHP_SELF
  • admin/user_perm : inheritence management. When a category become authorized, all parent categories become authorized, when a category become forbidden, all child category become forbidden
  • no more recursivity in delete_categories function
  • new function get_fs_directories for future new method of synchronization
  • new function get_uppercat_ids replacing several pieces of code doing the same
  • new function get_fulldirs used for metadata function get_filelist and future new method of synchronization
  • new function get_fs for future new method of synchronization
  • typo correction on lang item "about_message"
  • no link to category privacy status management on user permission anymore (giving the menu item instead)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/user.inc.php

    r653 r657  
    121121
    122122// if no information were found about user in user_forbidden table OR the
    123 // forbidden categories must be updated
    124 if (!isset($user['need_update'])
    125     or !is_bool($user['need_update'])
    126     or $user['need_update'] == true)
     123// forbidden categories must be updated : only if current user is in public
     124// part
     125if (!defined('IN_ADMIN') or !IN_ADMIN)
    127126{
    128   $user['forbidden_categories'] = calculate_permissions($user['id']);
     127  if (!isset($user['need_update'])
     128      or !is_bool($user['need_update'])
     129      or $user['need_update'] == true)
     130  {
     131    $user['forbidden_categories'] = calculate_permissions($user['id']);
     132  }
    129133}
    130134
Note: See TracChangeset for help on using the changeset viewer.