[evolution-mapi/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-mapi/gnome-3-22] Bug 775951 - Folder permission level change doesn't change read permission
- Date: Tue, 13 Dec 2016 11:40:44 +0000 (UTC)
commit 0c2cc75ef96389b0021da380d6bcc26f2748d1f5
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 13 12:37:07 2016 +0100
Bug 775951 - Folder permission level change doesn't change read permission
src/configuration/e-mapi-edit-folder-permissions.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/configuration/e-mapi-edit-folder-permissions.c
b/src/configuration/e-mapi-edit-folder-permissions.c
index 35ade8a..fa14674 100644
--- a/src/configuration/e-mapi-edit-folder-permissions.c
+++ b/src/configuration/e-mapi-edit-folder-permissions.c
@@ -545,9 +545,13 @@ update_permission_dialog_by_level_combo (GObject *dialog)
if (ii < 0 || ii >= G_N_ELEMENTS (predefined_levels) - 1)
return;
- rights = folder_permissions_dialog_to_rights (dialog);
- rights = predefined_levels[ii].rights | (rights & (E_MAPI_PERMISSION_BIT_FREE_BUSY_DETAILED |
- E_MAPI_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_MAPI_PERMISSION_BIT_FREE_BUSY_DETAILED |
+ E_MAPI_PERMISSION_BIT_FREE_BUSY_SIMPLE));
+ }
widgets->updating = TRUE;
update_folder_permissions_by_rights (dialog, rights);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]