mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-26 15:40:32 +00:00
* SoObject/SOGo/SOGoParentFolder.m (_createPersonalFolder):
Automatically create the folder if its owner is a resource.
(not if the active user is a resource)
Monotone-Parent: 4a872122da5acff4772feafceee7decf55c1bd98
Monotone-Revision: 6857ec31df4746fa033c80de4b53d7d7e0a4b9e4
Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-05-09T17:48:51
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2012-05-09 Jean Raby <jraby@inverse.ca>
|
||||||
|
|
||||||
|
* SoObject/SOGo/SOGoParentFolder.m (_createPersonalFolder):
|
||||||
|
Automatically create the folder if its owner is a resource.
|
||||||
|
(not if the active user is a resource)
|
||||||
|
|
||||||
2012-05-09 Ludovic Marcotte <lmarcotte@inverse.ca>
|
2012-05-09 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||||
|
|
||||||
* SoObjects/Mailer/SOGoDraftObject.m - don't encode message/rfc822
|
* SoObjects/Mailer/SOGoDraftObject.m - don't encode message/rfc822
|
||||||
|
|||||||
@@ -157,14 +157,16 @@ static SoSecurityManager *sm = nil;
|
|||||||
{
|
{
|
||||||
NSArray *roles;
|
NSArray *roles;
|
||||||
SOGoGCSFolder *folder;
|
SOGoGCSFolder *folder;
|
||||||
|
SOGoUser *folderOwner;
|
||||||
|
|
||||||
roles = [[context activeUser] rolesForObject: self inContext: context];
|
roles = [[context activeUser] rolesForObject: self inContext: context];
|
||||||
|
folderOwner = [SOGoUser userWithLogin: [self ownerInContext: context]];
|
||||||
|
|
||||||
// We autocreate the calendars if the user is the owner, a superuser or
|
// We autocreate the calendars if the user is the owner, a superuser or
|
||||||
// if it's a resource as we won't necessarily want to login as a resource
|
// if it's a resource as we won't necessarily want to login as a resource
|
||||||
// in order to create its database tables.
|
// in order to create its database tables.
|
||||||
if ([roles containsObject: SoRole_Owner] ||
|
if ([roles containsObject: SoRole_Owner] ||
|
||||||
[[context activeUser] isResource])
|
(folderOwner && [folderOwner isResource]))
|
||||||
{
|
{
|
||||||
folder = [subFolderClass objectWithName: @"personal" inContainer: self];
|
folder = [subFolderClass objectWithName: @"personal" inContainer: self];
|
||||||
[folder setDisplayName: [self defaultFolderName]];
|
[folder setDisplayName: [self defaultFolderName]];
|
||||||
|
|||||||
Reference in New Issue
Block a user