PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.1.0
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.1.0
2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 All 42 releases
← All changes | app/Http/Policies/UserPolicy.php +14 -2 1.212.1.0 View file →
@@ -15,12 +15,24 @@
15 15 */
16 16 public function verifyRequest(Request $request)
17 17 {
18 18 // Check if user has access to the app
19 - return PermissionManager::hasAppAccess();
19 + if (!PermissionManager::hasAppAccess()) {
20 + return false;
21 + }
22 +
23 + // Match the controller's URL target; query/body parameters must not override it.
24 + $routeParams = $request->get_url_params();
25 + if (!array_key_exists('id', $routeParams)) {
26 + return true;
27 + }
28 +
29 + $targetUserId = intval($routeParams['id']);
30 +
31 + return $targetUserId > 0 && PermissionManager::userCanAccessMemberProfile($targetUserId);
20 32 }
21 33
22 - public function quickSearch(Request $request)
34 + public function globalSearch(Request $request)
23 35 {
24 36 return true;
25 37 }
26 38