Changeset 11726


Ignore:
Timestamp:
Jul 13, 2011, 2:35:15 PM (9 years ago)
Author:
plg
Message:

bug 2374 fixed: pLoader can now create albums

File:
1 edited

Legend:

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

    r10096 r11726  
    202202  $methods[] = 'pwg.images.setInfo';
    203203
    204   // TODO ability to create sub-albums with the web API
    205   $methods_creates = array(
    206     'pwg.categories.add',
    207     'pwg.categories.setInfo',
    208     );
    209    
    210204  if (in_array($methodName, $methods))
    211205  {
    212206    $user['status'] = 'admin';
     207  }
     208
     209  if ('pwg.categories.add' == $methodName)
     210  {
     211    if (in_array($params['parent'], $user_permissions['create_categories']))
     212    {
     213      $user['status'] = 'admin';
     214    }
    213215  }
    214216
Note: See TracChangeset for help on using the changeset viewer.