File tree Expand file tree Collapse file tree
plugins/data_migration/frontend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ const path = require('path');
2020 res . download ( myfile , req . query . id + '.tar.gz' ) ;
2121 return ;
2222 }
23-
23+ else {
24+ res . status ( 404 ) . send ( 'Export file not found' ) ;
25+ return ;
26+ }
2427 }
2528 } ) ;
2629 }
@@ -30,6 +33,10 @@ const path = require('path');
3033 res . download ( path . resolve ( __dirname , '../../../log/' + req . query . logfile ) , req . query . logfile ) ;
3134 return ;
3235 }
36+ else {
37+ res . status ( 404 ) . send ( 'Log file not found' ) ;
38+ return ;
39+ }
3340
3441 }
3542 }
Original file line number Diff line number Diff line change 8686 return {
8787 list : [ ] ,
8888 exportsTablePersistKey : 'exports_table_' + countlyCommon . ACTIVE_APP_ID ,
89- isLoading : false
89+ isLoading : false ,
90+ isGlobalAdmin : countlyGlobal . member . global_admin
9091 } ;
9192 } ,
9293 methods : {
Original file line number Diff line number Diff line change 3333 < el-table-column width ="100 ">
3434 < template v-slot ="rowScope ">
3535 < cly-more-options v-if ="rowScope.row.hover " size ="small " @command ="handleCommand($event, scope, rowScope.row) ">
36- < el-dropdown-item command ="download-log "> {{i18n('data-migration.download-log')}}</ el-dropdown-item >
37- < el-dropdown-item command ="download-export "> {{i18n('data-migration.download-export')}}</ el-dropdown-item >
36+ < el-dropdown-item v-if =" isGlobalAdmin " command ="download-log "> {{i18n('data-migration.download-log')}}</ el-dropdown-item >
37+ < el-dropdown-item v-if =" isGlobalAdmin " command ="download-export "> {{i18n('data-migration.download-export')}}</ el-dropdown-item >
3838 < el-dropdown-item v-if ="canUserCreate && !rowScope.row.only_export " command ="resend "> {{i18n('data-migration.resend-export')}}</ el-dropdown-item >
3939 < el-dropdown-item v-if ="canUserDelete && rowScope.row.status !== 'progress' " command ="delete-export "> {{i18n('data-migration.delete-export')}}</ el-dropdown-item >
4040 < el-dropdown-item v-if ="canUserUpdate && rowScope.row.status === 'progress' " command ="stop-export "> {{i18n('data-migration.stop-export')}}</ el-dropdown-item >
Original file line number Diff line number Diff line change 11< div class ="data_migration__main ">
22 < cly-header
33 :title ="i18n('data-migration.page-title') "
4+ :tooltip ="{description: 'Plugin allows migrating full data for application. Full rights are available only for global admin.'} "
45 >
56 < template v-slot:header-right >
67 < cly-more-options v-if ="canUserCreate " @command ="handleCommand ">
You can’t perform that action at this time.
0 commit comments