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/Services/Helper.php +6 -2 2.0.102.1.0 View file →
@@ -198,8 +198,9 @@
198 198 {
199 199 $fieldMaps = [
200 200 'bg_color' => 'sanitize_text_field',
201 201 'color' => 'sanitize_text_field',
202 + 'color_preset' => 'sanitize_key',
202 203 'label' => 'sanitize_text_field',
203 204 'boardId' => 'intval',
204 205 'task_id' => 'intval',
205 206 'meta_value' => 'intval',
@@ -434,9 +435,10 @@
434 435
435 436 return $users;
436 437 }
437 438
438 - public static function sanitizeUsersArray($users, $boardId = null)
439 + // Callers formatting multiple lists may supply a resolved board-manager result.
440 + public static function sanitizeUsersArray($users, $boardId = null, $isBoardManager = null)
439 441 {
440 442 if (current_user_can('list_users')) {
441 443 return $users;
442 444 }
@@ -442,9 +444,9 @@
442 444 }
443 445
444 446 $sanitizedUsers = [];
445 447
446 - if(!PermissionManager::isBoardManager($boardId)) //Todo: may create permission security issue, will be modified later
448 + if (!($isBoardManager ?? PermissionManager::isBoardManager($boardId)))
447 449 {
448 450 $currentUser = wp_get_current_user();
449 451 if($currentUser && isset($currentUser->user_email)){
450 452 $currentUserEmail = $currentUser->user_email;
@@ -704,8 +706,9 @@
704 706 'deleted' => __('deleted', 'fluent-boards'),
705 707 'archived' => __('archived', 'fluent-boards'),
706 708 'restored' => __('restored', 'fluent-boards'),
707 709 'set' => __('set', 'fluent-boards'),
710 + 'moved' => __('moved', 'fluent-boards'),
708 711 ];
709 712
710 713 $columnTranslations = [
711 714 'task' => __('task', 'fluent-boards'),
@@ -725,8 +728,9 @@
725 728 'the associate email' => __('the associate email', 'fluent-boards'),
726 729 'attachment' => __('attachment', 'fluent-boards'),
727 730 'repeat task' => __('repeat task', 'fluent-boards'),
728 731 'Repeat Task' => __('Repeat Task', 'fluent-boards'),
732 + 'tasks' => __('tasks', 'fluent-boards'),
729 733 ];
730 734
731 735 foreach ($activities as $activity) {
732 736 $activity->action_key = $activity->action;