Monotone-Parent: efb32ee0b07634ff28f86f07c618160d8d121225

Monotone-Revision: 1af71f130ccb8d21bb16f766da69f735eac5f36b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-19T22:34:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-19 22:34:31 +00:00
parent ddd0b2f653
commit ca725a4dbd
5 changed files with 34 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
2007-11-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Common/UIxPageFrame.m ([UIxPageFrame -isSuperUser]): new
accessor that forwards the call to the active user.
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -signature]): returns the
user default signature.
([SOGoUser -isSuperUser]): declares whether the user is listed
among the super users.
* UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
-setComponent:newComponent]): retain the component object.
([UIxComponentEditor -organizerIdentity]): new accessor method to

View File

@@ -120,6 +120,10 @@ extern NSString *SOGoWeekStartFirstFullWeek;
- (NSString *) messageForwarding;
- (NSString *) messageCheck;
- (NSString *) signature;
- (BOOL) isSuperUser;
/* folders */
- (SOGoUserFolder *) homeFolderInContext: (id) context;

View File

@@ -501,6 +501,11 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
return [[defaultAccount objectForKey: @"identities"] objectAtIndex: 0];
}
- (NSString *) signature
{
return [[self primaryIdentity] objectForKey: @"signature"];
}
- (NSString *) messageForwarding
{
NSString *messageForwarding;
@@ -612,4 +617,9 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
&& [login isEqualToString: [otherUser login]]);
}
- (BOOL) isSuperUser
{
return [superUsernames containsObject: login];
}
@end /* SOGoUser */

View File

@@ -335,6 +335,11 @@
return toolbar;
}
- (BOOL) isSuperUser
{
return [[context activeUser] isSuperUser];
}
/* browser/os identification */
- (BOOL) isCompatibleBrowser

View File

@@ -73,8 +73,14 @@
<div id="javascriptSafetyNet"><!-- space --></div>
<script type="text/javascript">
var ApplicationBaseURL = '<var:string value="applicationPath" />';
var ApplicationBaseURL = '<var:string value="applicationPath"/>';
var ResourcesURL = '/SOGo.woa/WebServerResources';
<var:if condition="isSuperUser"
>var IsSuperUser = true;
</var:if>
<var:if condition="isSuperUser" const:negate="YES"
>var IsSuperUser = false;
</var:if>
<var:if condition="shortUserNameForDisplay" const:value="anonymous"
const:negate="YES"
>var UserFolderURL = '<var:string value="userFolderPath" />';