From 67baf0eef1fd35480b715c3d2b697b2a15c11b9d Mon Sep 17 00:00:00 2001 From: Till Adam Date: Thu, 17 Feb 2005 13:49:23 +0000 Subject: [PATCH] Don't attempt to upload acls changes to the server if the user has not enough rights to do that. svn path=/trunk/kdepim/; revision=390256 --- kmfoldercachedimap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmfoldercachedimap.cpp b/kmfoldercachedimap.cpp index 085f8e7e8..44ec3a45d 100644 --- a/kmfoldercachedimap.cpp +++ b/kmfoldercachedimap.cpp @@ -918,7 +918,8 @@ void KMFolderCachedImap::serverSyncInternal() case SYNC_STATE_SET_ACLS: mSyncState = SYNC_STATE_GET_ACLS; - if( !noContent() && mAccount->hasACLSupport() ) { + if( !noContent() && mAccount->hasACLSupport() && + ( mUserRights <= 0 || ( mUserRights & ACLJobs::Administer ) ) ) { bool hasChangedACLs = false; ACLList::ConstIterator it = mACLList.begin(); for ( ; it != mACLList.end() && !hasChangedACLs; ++it ) {