Navigation Menu

Skip to content

Commit

Permalink
Prevents cached Search album to be proposed when changing default alb…
Browse files Browse the repository at this point in the history
…um, moving an album and choosing an album before upload
  • Loading branch information
EddyLB committed Jun 24, 2019
1 parent d10a52b commit d36a3c8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions piwigo/Albums/Album Move/MoveCategoryViewController.m
Expand Up @@ -499,6 +499,11 @@ -(void)buildCategoryArray
// Look for categories which are not already displayed
for(PiwigoAlbumData *category in allCategories)
{
// Search album should not be proposed
if (category.albumId == kPiwigoSearchCategoryId) {
continue;
}

// Non-admin Community users can only upload in specific albums
if (![Model sharedInstance].hasAdminRights && !category.hasUploadRights) {
continue;
Expand Down
5 changes: 5 additions & 0 deletions piwigo/Settings/Views/DefaultCategoryViewController.m
Expand Up @@ -471,6 +471,11 @@ -(void)buildCategoryArray
// Look for categories which are not already displayed
for(PiwigoAlbumData *category in allCategories)
{
// Search album should not be proposed
if (category.albumId == kPiwigoSearchCategoryId) {
continue;
}

// Non-admin Community users can only upload in specific albums
if (![Model sharedInstance].hasAdminRights && !category.hasUploadRights) {
continue;
Expand Down
5 changes: 5 additions & 0 deletions piwigo/Upload/Pick Piwigo Album/CategoryPickViewController.m
Expand Up @@ -958,6 +958,11 @@ -(void)buildCategoryArray
// Look for categories which are not already displayed
for(PiwigoAlbumData *category in allCategories)
{
// Search album should not be proposed
if (category.albumId == kPiwigoSearchCategoryId) {
continue;
}

// Non-admin Community users can only upload in specific albums
if (![Model sharedInstance].hasAdminRights && !category.hasUploadRights) {
continue;
Expand Down

0 comments on commit d36a3c8

Please sign in to comment.