mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 06:15:26 +00:00
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:
@@ -335,6 +335,11 @@
|
||||
return toolbar;
|
||||
}
|
||||
|
||||
- (BOOL) isSuperUser
|
||||
{
|
||||
return [[context activeUser] isSuperUser];
|
||||
}
|
||||
|
||||
/* browser/os identification */
|
||||
|
||||
- (BOOL) isCompatibleBrowser
|
||||
|
||||
@@ -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" />';
|
||||
|
||||
Reference in New Issue
Block a user