Skip to content

Commit aeb4ec7

Browse files
committed
* implementing Sharing Permissions - STEP 14.3 - force evaluate sharing for all user projects when showing dashboard notes, dashboard sharing, and refreshing tabs
1 parent c489e1e commit aeb4ec7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Controller/TodoNotesController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function ShowDashboard()
164164
$tab_id = intval($tab_id);
165165
}
166166

167-
$projectsAccess = $this->todoNotesModel->GetAllProjectIds($user_id);
167+
$projectsAccess = $this->todoNotesModel->EvaluateSharingForAllUserProjects($user_id);
168168
$project_id = ($tab_id > 0) ? $projectsAccess[$tab_id - 1]['project_id'] : 0;
169169
$usersAccess = $this->todoNotesModel->GetSharingPermissions($project_id, $user_id);
170170

@@ -236,7 +236,7 @@ public function ShowDashboardSharing()
236236
)));
237237
}
238238

239-
$projectsAccess = $this->todoNotesModel->GetAllProjectIds($user_id);
239+
$projectsAccess = $this->todoNotesModel->EvaluateSharingForAllUserProjects($user_id);
240240
$project_id = $projectsAccess[$tab_id - 1]['project_id'];
241241
$usersAccess = $this->todoNotesModel->GetSharingPermissions($project_id, $user_id);
242242

@@ -259,7 +259,7 @@ public function ShowDashboardSharing()
259259
public function RefreshTabs()
260260
{
261261
$user_id = $this->ResolveUserId();
262-
$projectsAccess = $this->todoNotesModel->GetAllProjectIds($user_id);
262+
$projectsAccess = $this->todoNotesModel->EvaluateSharingForAllUserProjects($user_id);
263263

264264
return $this->response->html($this->helper->layout->app('TodoNotes:dashboard/tabs', array(
265265
'user_id' => $user_id,

0 commit comments

Comments
 (0)