merge of '5901cb55e465d09b6ccf43a331523d24a91ebb01'

and 'ab2e4a9b9ea9d6fe4dbb85153205e15f4a080f30'

Monotone-Parent: 5901cb55e465d09b6ccf43a331523d24a91ebb01
Monotone-Parent: ab2e4a9b9ea9d6fe4dbb85153205e15f4a080f30
Monotone-Revision: 187fb28d41b875b82a5bc4cebd053fc83e84f32b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-06-20T14:55:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2008-06-20 14:55:37 +00:00
commit 52a2e85a1e
3 changed files with 21 additions and 0 deletions

View file

@ -8,6 +8,13 @@
([SOGoAppointmentFolder -setSyncTag:newSyncTag]): new accessors
that retrieves and set the calendar tags.
* UI/Contacts/UIxContactEditor.m ([UIxContactEditor
-canCreateOrModify]): new overriden method that checks whether the
current clientObject is an instance of SOGoContactLDIFEntry before
returning the super method. This is to avoid the case where the
"save" button would appear because the user is listed as a super
user, which owns everything.
2008-06-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage

View file

@ -391,6 +391,16 @@
return @"editAsContact";
}
- (BOOL) canCreateOrModify
{
SOGoObject *co;
co = [self clientObject];
return ([co isKindOfClass: [SOGoContentObject class]]
&& [super canCreateOrModify]);
}
- (CardElement *) _elementWithTag: (NSString *) tag
ofType: (NSString *) type
{
@ -589,3 +599,4 @@
}
@end /* UIxContactEditor */

View file

@ -87,6 +87,9 @@
/* HTTP method safety */
- (BOOL) isInvokedBySafeMethod;
/* display the "save" button */
- (BOOL) canCreateOrModify;
/* locale */
- (NSDictionary *)locale;