mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
admin notice update
This commit is contained in:
@@ -36,6 +36,12 @@ class httpProc:
|
||||
if self.data == None:
|
||||
self.data = {}
|
||||
|
||||
from IncBackups.models import OneClickBackups
|
||||
if OneClickBackups.objects.filter(owner=admin).count() == 0:
|
||||
self.data['backupDisplay'] = 1
|
||||
else:
|
||||
self.data['backupDisplay'] = 0
|
||||
|
||||
### Onboarding checks
|
||||
|
||||
if currentACL['admin']:
|
||||
@@ -77,12 +83,6 @@ Please launch the <a href="/base/onboarding">set-up wizard</a> to get maximum ou
|
||||
except:
|
||||
pass
|
||||
|
||||
from IncBackups.models import OneClickBackups
|
||||
if OneClickBackups.objects.filter(owner=admin).count() == 0:
|
||||
self.data['backupDisplay'] = 1
|
||||
else:
|
||||
self.data['backupDisplay'] = 0
|
||||
|
||||
|
||||
ACLManager.GetServiceStatus(self.data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user