[evolution-ews/gnome-3-22] 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/gnome-3-22] Bug 775951 - Folder permission level change doesn't change read permission
- Date: Tue, 13 Dec 2016 11:35:55 +0000 (UTC)
commit 142c1eac4f2f7d6e534d53350a4c9870b7bce305
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 8ae8a25..ec44f0e 100644
--- a/src/configuration/e-ews-edit-folder-permissions.c
+++ b/src/configuration/e-ews-edit-folder-permissions.c
@@ -528,9 +528,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]