Skip to content

Commit

Permalink
fix(ViewService): treat missing index manageTable pragmatically
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Jul 22, 2024
1 parent 01d5daa commit 1517a02
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 1517a02

Please sign in to comment.