Fix rename of subscribed addressbooks
parent
15be4861b6
commit
7052daa1c8
1
NEWS
1
NEWS
|
@ -15,6 +15,7 @@ Bug fixes
|
|||
- fixed many interop issues with Windows Phones over ActiveSync
|
||||
- fixed automatic return receipts crash when not in the recepient list (#2965)
|
||||
- fixed support for Sieve folder encoding parameter (#2622)
|
||||
- fixed rename of subscribed addressbooks
|
||||
|
||||
2.2.9a (2014-09-29)
|
||||
-------------------
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
actionName = "subscribeUsers";
|
||||
};
|
||||
renameFolder = {
|
||||
protectedBy = "Change Permissions";
|
||||
protectedBy = "Access Contents Information";
|
||||
actionClass = "UIxFolderActions";
|
||||
actionName = "renameFolder";
|
||||
};
|
||||
|
|
|
@ -1113,19 +1113,14 @@ function onAddressBooksMenuPrepareVisibility() {
|
|||
|
||||
var menu = $("contactFoldersMenu").down("ul");;
|
||||
var listElements = menu.childNodesWithTag("li");
|
||||
var modifyOption = listElements[0];
|
||||
var newListOption = listElements[3];
|
||||
var removeOption = listElements[5];
|
||||
var exportOption = listElements[7];
|
||||
var importOption = listElements[8];
|
||||
var sharingOption = listElements[listElements.length - 1];
|
||||
|
||||
// Disable the "Sharing" and "Modify" options when address book
|
||||
// is not owned by user
|
||||
// Disable the "Sharing" option when address book is not owned by user
|
||||
if (folderOwner == UserLogin || IsSuperUser) {
|
||||
modifyOption.removeClassName("disabled"); // WARNING: will fail
|
||||
// for super users
|
||||
// anyway
|
||||
var aclEditing = selected[0].getAttribute("acl-editing");
|
||||
if (aclEditing && aclEditing == "available") {
|
||||
sharingOption.removeClassName("disabled");
|
||||
|
@ -1147,8 +1142,7 @@ function onAddressBooksMenuPrepareVisibility() {
|
|||
newListOption.addClassName("disabled");
|
||||
}
|
||||
|
||||
/* Disable the "remove" and "export ab" options when address book is
|
||||
public */
|
||||
// Disable the "remove" and "export ab" options when address book is public
|
||||
if (folderOwner == "nobody") {
|
||||
exportOption.addClassName("disabled");
|
||||
importOption.addClassName("disabled");
|
||||
|
|
Loading…
Reference in New Issue