[evolution-ews] Bug 775951 - Folder permission level change doesn't change read permission
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug 775951 - Folder permission level change doesn't change read permission
- Date: Tue, 13 Dec 2016 11:33:24 +0000 (UTC)
commit efe8f14f63062a155312dd34a445e73bcc509111
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 13 12:32:49 2016 +0100
Bug 775951 - Folder permission level change doesn't change read permission
src/configuration/e-ews-edit-folder-permissions.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/configuration/e-ews-edit-folder-permissions.c
b/src/configuration/e-ews-edit-folder-permissions.c
index 6247678..cbd847c 100644
--- a/src/configuration/e-ews-edit-folder-permissions.c
+++ b/src/configuration/e-ews-edit-folder-permissions.c
@@ -526,9 +526,13 @@ update_permission_dialog_by_level_combo (GObject *dialog)
(!widgets->read_fb_time_radio && ii >= G_N_ELEMENTS (predefined_levels) - 3))
return;
- rights = folder_permissions_dialog_to_rights (dialog);
- rights = predefined_levels[ii].rights | (rights & (E_EWS_PERMISSION_BIT_FREE_BUSY_DETAILED |
- E_EWS_PERMISSION_BIT_FREE_BUSY_SIMPLE));
+ if (!predefined_levels[ii].rights) {
+ rights = predefined_levels[ii].rights;
+ } else {
+ rights = folder_permissions_dialog_to_rights (dialog);
+ rights = predefined_levels[ii].rights | (rights & (E_EWS_PERMISSION_BIT_FREE_BUSY_DETAILED |
+ E_EWS_PERMISSION_BIT_FREE_BUSY_SIMPLE));
+ }
widgets->updating++;
update_folder_permissions_by_rights (dialog, rights);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]