diff --git a/.gitignore b/.gitignore index 3c420e1..077bc43 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ !LICENSE !/assets/ !/plugnmeet/ +.DS_Store \ No newline at end of file diff --git a/plugnmeet/README.txt b/plugnmeet/README.txt index f906055..20fc00c 100644 --- a/plugnmeet/README.txt +++ b/plugnmeet/README.txt @@ -3,8 +3,8 @@ Contributors: mynaparrot Donate link: https://www.mynaparrot.com/ Tags: mynaparrot, web conference, plugnmeet Requires at least: 5.9 -Tested up to: 6.0.3 -Stable tag: 1.1.5 +Tested up to: 6.1 +Stable tag: 1.2.0 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -56,6 +56,10 @@ Please follow this article: https://www.plugnmeet.org/docs/installation == Changelog == += 1.2.0 = +* auto recording + playback recording +* new permission setting + = 1.1.0 = * Bump Plug-N-Meet PHP SDK to v1.1.0 diff --git a/plugnmeet/admin/class-plugnmeet-admin.php b/plugnmeet/admin/class-plugnmeet-admin.php index e361013..e5f879a 100755 --- a/plugnmeet/admin/class-plugnmeet-admin.php +++ b/plugnmeet/admin/class-plugnmeet-admin.php @@ -253,7 +253,7 @@ public function save_room_data() { $published = isset($_POST['published']) ? sanitize_text_field($_POST['published']) : 1; $roles = isset($_POST['roles']) ? $_POST['roles'] : array(); - $room_metadata_items = ['room_features', 'chat_features', 'shared_note_pad_features', 'whiteboard_features', 'external_media_player_features', 'waiting_room_features', 'breakout_room_features', 'display_external_link_features', 'default_lock_settings', 'custom_design']; + $room_metadata_items = ['room_features', 'recording_features', 'chat_features', 'shared_note_pad_features', 'whiteboard_features', 'external_media_player_features', 'waiting_room_features', 'breakout_room_features', 'display_external_link_features', 'default_lock_settings', 'custom_design']; $room_metadata = []; foreach ($room_metadata_items as $item) { diff --git a/plugnmeet/admin/class-plugnmeet-room-page.php b/plugnmeet/admin/class-plugnmeet-room-page.php index 244b995..a364847 100644 --- a/plugnmeet/admin/class-plugnmeet-room-page.php +++ b/plugnmeet/admin/class-plugnmeet-room-page.php @@ -97,7 +97,7 @@ private function getFormData() { $fields_values['attendee_pass'] = PlugnmeetHelper::secureRandomKey(10); } - $room_metadata_items = ['room_features', 'chat_features', 'shared_note_pad_features', 'whiteboard_features', 'external_media_player_features', 'waiting_room_features', 'breakout_room_features', 'display_external_link_features', 'default_lock_settings', 'custom_design']; + $room_metadata_items = ['room_features', 'recording_features', 'chat_features', 'shared_note_pad_features', 'whiteboard_features', 'external_media_player_features', 'waiting_room_features', 'breakout_room_features', 'display_external_link_features', 'default_lock_settings', 'custom_design']; if (isset($data->room_metadata)) { $room_metadata = json_decode($data->room_metadata, true); diff --git a/plugnmeet/admin/partials/form-parts/permission.php b/plugnmeet/admin/partials/form-parts/permission.php index 67441ba..89ab3c3 100644 --- a/plugnmeet/admin/partials/form-parts/permission.php +++ b/plugnmeet/admin/partials/form-parts/permission.php @@ -22,17 +22,23 @@ 'title' => $role['name'], 'require_password' => "on", 'join_as' => 'attendee', + 'can_view_recording' => "off", + 'can_play' => "off", 'can_download' => "off", 'can_delete' => "off" ); if (isset($role['capabilities']['edit_users']) && $role['capabilities']['edit_users']) { $r['require_password'] = "off"; + $r['can_play'] = "on"; + $r['can_view_recording'] = "on"; $r['can_download'] = "on"; $r['can_delete'] = "on"; $r['join_as'] = 'moderator'; } elseif (isset($role['capabilities']['edit_posts']) && $role['capabilities']['edit_posts']) { $r['require_password'] = "off"; + $r['can_view_recording'] = "on"; + $r['can_play'] = "on"; $r['can_download'] = "on"; $r['join_as'] = 'moderator'; } @@ -43,6 +49,8 @@ 'title' => "Guest/Public", 'require_password' => "on", 'join_as' => 'attendee', + 'can_view_recording' => 'off', + 'can_play' => 'off', 'can_download' => "off", 'can_delete' => "off" ); @@ -100,6 +108,8 @@