Only show cron warning to admins

This commit is contained in:
Hillel Coren 2023-07-03 09:57:47 +03:00
parent 3f83bcc582
commit b6965dc9c8
1 changed files with 3 additions and 1 deletions

View File

@ -1014,7 +1014,9 @@ class SidebarFooter extends StatelessWidget {
Expanded(child: SizedBox())
] else ...[
if (!Config.DEMO_MODE && !state.isDemo && account.isOld)
if (state.isSelfHosted && !account.isSchedulerRunning)
if (state.isSelfHosted &&
!account.isSchedulerRunning &&
state.userCompany.isAdmin)
IconButton(
tooltip: prefState.enableTooltips ? localization.error : '',
icon: Icon(