Skip to content

Commit

Permalink
Fix top-level edits for non-admin users (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil4 authored Aug 29, 2020
1 parent 3203891 commit 99ba2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/UploadCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function album_check(Request $request, int $user_id)

// Remove smart albums (they get a pass).
for ($i = 0; $i < count($albumIDs);) {
if ($this->albumFunctions->is_smart_album($albumIDs[$i])) {
if ($this->albumFunctions->is_smart_album($albumIDs[$i]) || $albumIDs[$i] === '0') {
array_splice($albumIDs, $i, 1);
} else {
$i++;
Expand Down

0 comments on commit 99ba2f2

Please sign in to comment.