Skip to content

Commit

Permalink
Merge pull request #1227 from nextcloud/fix/1131-0.7/manageTable
Browse files Browse the repository at this point in the history
[stable0.7] fix(ViewService): treat missing index manageTable pragmatically
  • Loading branch information
blizzz committed Jul 22, 2024
2 parents 01d5daa + 1517a02 commit d047965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Service/ViewService.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ private function enhanceView(View $view, string $userId): void {

if($view->getIsShared()) {
// Remove detailed view filtering and sorting information if necessary
if(!$view->getOnSharePermissions()['manageTable']) {
$permissions = $view->getOnSharePermissions();
if (!isset($permissions['manageTable']) || !$permissions['manageTable']) {
$rawFilterArray = $view->getFilterArray();
if($rawFilterArray) {
$view->setFilterArray(
Expand Down

0 comments on commit d047965

Please sign in to comment.