const FAT_CLIENT_CUSTOM_JS = 'fatClientCustomJS';
/**
+ * @var array of strings
+ */
+ const VERSION_CHECK = 'versionCheck';
+
+ /**
* (non-PHPdoc)
* @see tine20/Tinebase/Config/Definition::$_properties
*/
'setByAdminModule' => TRUE,
'setBySetupModule' => TRUE,
),
+ self::VERSION_CHECK => array(
+ //_('Version check enabled')
+ 'label' => 'Version check enabled',
+ 'description' => 'Version check enabled',
+ 'type' => 'bool',
+ 'default' => true,
+ 'clientRegistryInclude' => true,
+ 'setByAdminModule' => false,
+ 'setBySetupModule' => false,
+ ),
self::FAT_CLIENT_CUSTOM_JS => array(
// NOTE: it's possible to deliver customjs vom vfs by using the tine20:// streamwrapper
// tine20://<applicationid>/folders/shared/<containerid>/custom.js
this.activateDefaultApp();
- // check for new version
- if (Tine.Tinebase.common.hasRight('check_version', 'Tinebase')) {
+ // check for new version
+ // TODO add helper function for fetching config ... this condition sucks.
+ if (( ! Tine.Tinebase.registry.get("config")
+ || ! Tine.Tinebase.registry.get("config").versionCheck
+ || Tine.Tinebase.registry.get("config").versionCheck.value
+ ) && Tine.Tinebase.common.hasRight('check_version', 'Tinebase')
+ ) {
Tine.widgets.VersionCheck();
}