mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 07:47:12 +00:00
1 parent
3ce28b7316
commit
863510e707
1 file changed
+5
-2
@@ -310,7 +310,7 @@ static SoSecurityManager *sm = nil;
|
||||
NSMutableDictionary *folderDisplayNames;
|
||||
NSMutableArray *subscribedReferences;
|
||||
SOGoUserSettings *settings;
|
||||
NSString *currentKey;
|
||||
NSString *activeUser, *currentKey;
|
||||
SOGoUser *ownerUser;
|
||||
NSException *error;
|
||||
id o;
|
||||
@@ -326,6 +326,7 @@ static SoSecurityManager *sm = nil;
|
||||
error = nil; /* we ignore non-DB errors at this time... */
|
||||
dirty = NO;
|
||||
|
||||
activeUser = [[context activeUser] login];
|
||||
ownerUser = [SOGoUser userWithLogin: owner];
|
||||
settings = [ownerUser userSettings];
|
||||
|
||||
@@ -346,7 +347,9 @@ static SoSecurityManager *sm = nil;
|
||||
// remove it from the current list.
|
||||
[subscribedReferences removeObject: currentKey];
|
||||
[folderDisplayNames removeObjectForKey: currentKey];
|
||||
dirty = YES;
|
||||
if ([owner isEqualToString: activeUser])
|
||||
// Synchronize settings only if the subscription is owned by the active user
|
||||
dirty = YES;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user