diff --git a/ChangeLog b/ChangeLog index bddc874fd..779e3b4cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-04 Wolfgang Sourdeau + + * UI/Common/UIxAclEditor.m ([UIxAclEditor -currentUserIsOwner]): + new method with an explicit name. + 2007-05-03 Wolfgang Sourdeau * SoObjects/Appointments/SOGoCalendarComponent.m diff --git a/UI/Common/UIxAclEditor.m b/UI/Common/UIxAclEditor.m index 8c0e9df99..11466cebb 100644 --- a/UI/Common/UIxAclEditor.m +++ b/UI/Common/UIxAclEditor.m @@ -177,6 +177,18 @@ return [self jsCloseWithRefreshMethod: nil]; } +- (BOOL) currentUserIsOwner +{ + SOGoObject *clientObject; + NSString *currentUserLogin, *ownerLogin; + + clientObject = [self clientObject]; + ownerLogin = [clientObject ownerInContext: context]; + currentUserLogin = [[context activeUser] login]; + + return [ownerLogin isEqualToString: currentUserLogin]; +} + // - (id ) addUserInAcls // { // SOGoObject *clientObject;