Changeset 11726
- Timestamp:
- Jul 13, 2011, 2:35:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/community/main.inc.php
r10096 r11726 202 202 $methods[] = 'pwg.images.setInfo'; 203 203 204 // TODO ability to create sub-albums with the web API205 $methods_creates = array(206 'pwg.categories.add',207 'pwg.categories.setInfo',208 );209 210 204 if (in_array($methodName, $methods)) 211 205 { 212 206 $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 } 213 215 } 214 216
Note: See TracChangeset
for help on using the changeset viewer.