Ignore:
Timestamp:
Mar 9, 2011, 2:06:10 PM (13 years ago)
Author:
plg
Message:

bug fixed: invalidate_user_cache now also invalidates community user
permissions cache

bug fixed: community permissions cache was not refreshed when user connects,
I have added $_SESSIONcommunity_user_id to make sure the permissions are
related to the correct user

change: use a random key for cache update to avoid "in the same second
refresh".

filter the list of parent albums for "create a new album" based on permissions
even when create_whole_gallery is true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/maintain.inc.php

    r9566 r9583  
    328328  mass_inserts($prefixeTable.'community_permissions', array_keys($insert), array($insert));
    329329
    330   conf_update_param('community_update', time());
     330  include_once(dirname(__FILE__).'/include/functions_community.inc.php');
     331  community_update_cache_key();
    331332}
    332333?>
Note: See TracChangeset for help on using the changeset viewer.