Ignore:
Timestamp:
Jun 7, 2013, 2:41:14 PM (11 years ago)
Author:
plg
Message:

New feature: user album. Only for registered users, no recursivity. Piwigo
will automatically create an upload album for each user with appropriate
community permissions, at first connection.

Bug fixed: on activation, do not create a new "Community" album if it already
exists.

Bug fixed: remove debug for quota

Bug fixed: round corners for number of pending pictures in admin menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/add_photos.php

    r23037 r23085  
    3232define('PHOTOS_ADD_BASE_URL', make_index_url(array('section' => 'add_photos')));
    3333
    34 $user_permissions = community_get_user_permissions($user['id']);
    35 
    36 if (count($user_permissions['upload_categories']) == 0 and !$user_permissions ['create_whole_gallery'])
     34$user_permissions = $user['community_permissions'];
     35
     36if (!$user_permissions['community_enabled'])
    3737{
    3838  redirect(make_index_url());
     
    393393  if ($remaining_storage <= 0)
    394394  {
    395     echo 'limit storage reached<br>';
    396395    // limit reached
    397396    $setup_errors[] = sprintf(
     
    426425  if ($remaining_nb_photos <= 0)
    427426  {
    428     echo 'limit nb_photos reached<br>';
    429427    // limit reached
    430428    $setup_errors[] = sprintf(
Note: See TracChangeset for help on using the changeset viewer.