PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.2.1
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.2.1
2.2.1 2.2.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 All 44 releases
← All changes | app/Hooks/Handlers/TaskHandler.php +5 -0 2.0.15 → 2.2.1 View file →
@@ -85,8 +85,13 @@
85 85 }
86 86
87 87 public function searchNonBoardWordpressUsers()
88 88 {
89 + // This enumerates every WordPress user with their email; only user managers may see it.
90 + if (!current_user_can('list_users')) {
91 + return [];
92 + }
93 +
89 94 $superAdmin = Relation::select('user_id')->distinct()->pluck('user_id');
90 95 $users = User::whereDoesntHave('boards')->whereNotIn('ID', $superAdmin)->get();
91 96
92 97 $formattedUsers = [];