build->common); js::set('spaceType', $this->session->spaceType); js::set('rawModule', $this->app->rawModule); js::set('rawMethod', $this->app->rawMethod); /* ObjectType and objectID used for other space. */ js::set('objectType', isset($type) ? $type : ''); js::set('objectID', isset($objectID) ? $objectID : ''); js::set('isFirstLoad', isset($isFirstLoad) ? $isFirstLoad: ''); js::set('canViewFiles', common::hasPriv('doc', 'showfiles')); js::set('spaceMethod', $config->doc->spaceMethod); js::set('canSortDocCatalog', common::hasPriv('doc', 'sortCatalog')); js::set('canSortAPICatalog', common::hasPriv('api', 'sortCatalog')); ?>
rawMethod == 'view' and common::hasPriv('doc', 'displaySetting')):?>