File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 189189 'target ' => 'content ' ,
190190 'link ' => 'mail/mail_user_stats.php ' ,
191191 'html_id ' => 'mail_user_stats ' );
192- $ items [] = array (
193- 'title ' => 'Backup Stats ' ,
194- 'target ' => 'content ' ,
195- 'link ' => 'mail/backup_stats.php ' ,
196- 'html_id ' => 'backup_stats ' );
197-
192+ if ($ app ->auth ->get_client_limit ($ userid , 'backup ' ) == 'y ' ) {
193+ $ items [] = array (
194+ 'title ' => 'Backup Stats ' ,
195+ 'target ' => 'content ' ,
196+ 'link ' => 'mail/backup_stats.php ' ,
197+ 'html_id ' => 'backup_stats ' );
198+ }
198199
199200$ module ['nav ' ][] = array ( 'title ' => 'Statistics ' ,
200201 'open ' => 1 ,
Original file line number Diff line number Diff line change 209209 'link ' => 'sites/database_quota_stats.php ' ,
210210 'html_id ' => 'databse_quota_stats ' );
211211
212- $ items [] = array (
213- 'title ' => 'Backup Stats ' ,
214- 'target ' => 'content ' ,
215- 'link ' => 'sites/backup_stats.php ' ,
216- 'html_id ' => 'backup_stats '
217- );
212+ if ($ app ->auth ->get_client_limit ($ userid , 'backup ' ) == 'y ' ) {
213+ $ items [] = array (
214+ 'title ' => 'Backup Stats ' ,
215+ 'target ' => 'content ' ,
216+ 'link ' => 'sites/backup_stats.php ' ,
217+ 'html_id ' => 'backup_stats '
218+ );
219+ }
218220
219221$ module ['nav ' ][] = array ( 'title ' => 'Statistics ' ,
220222 'open ' => 1 ,
You can’t perform that action at this time.
0 commit comments