Monotone-Parent: 53787a178138e23c283a66af023cbddab3f3c417

Monotone-Revision: 694c7b017aa273b513c6e1d50eea0215ccaf487c

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-19T22:40:13
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-19 22:40:13 +00:00
parent e357be66f1
commit 764d45e2b1
2 changed files with 24 additions and 2 deletions

View File

@@ -1371,7 +1371,7 @@ function onCalendarsMenuPrepareVisibility() {
var folderOwner = selected[0].getAttribute("owner");
var sharingOption = $(this).down("ul").childElements().last();
// Disable the "Sharing" option when calendar is not owned by user
if (folderOwner == UserLogin)
if (folderOwner == UserLogin || IsSuperUser)
sharingOption.removeClassName("disabled");
else
sharingOption.addClassName("disabled");