Changeset 9563 for extensions/community/add_photos.php
- Timestamp:
- Mar 7, 2011, 3:49:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/community/add_photos.php
r9504 r9563 36 36 $user_permissions = community_get_user_permissions($user['id']); 37 37 38 if (count($user_permissions['upload_categories']) == 0 and !$user_permissions ['create_whole_gallery']) 39 { 40 redirect(make_index_url()); 41 } 42 38 43 // +-----------------------------------------------------------------------+ 39 44 // | process form | … … 246 251 247 252 // we have to change the list of uploadable albums 253 $upload_categories = $user_permissions['upload_categories']; 254 if (count($upload_categories) == 0) 255 { 256 $upload_categories = array(-1); 257 } 258 248 259 $query = ' 249 260 SELECT id,name,uppercats,global_rank 250 261 FROM '.CATEGORIES_TABLE.' 251 WHERE id IN ('.implode(',', $u ser_permissions['upload_categories']).')262 WHERE id IN ('.implode(',', $upload_categories).') 252 263 ;'; 253 264 … … 259 270 260 271 $create_subcategories = false; 272 273 if ($user_permissions['create_whole_gallery']) 274 { 275 $create_subcategories = true; 276 } 261 277 262 278 if (count($user_permissions['create_categories']) > 0)
Note: See TracChangeset
for help on using the changeset viewer.