mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-30 18:06:35 +01:00
Added Services Page, Bug fix to Website Creation!
This commit is contained in:
@@ -32,12 +32,7 @@ def loadWebsitesHome(request):
|
||||
|
||||
admin = Administrator.objects.get(pk=val)
|
||||
|
||||
viewStatus = 1
|
||||
|
||||
if admin.type == 3:
|
||||
viewStatus = 0
|
||||
|
||||
return render(request,'websiteFunctions/index.html',{"viewStatus":viewStatus})
|
||||
return render(request,'websiteFunctions/index.html',{"type":admin.type})
|
||||
except KeyError:
|
||||
return redirect(loadLoginPage)
|
||||
|
||||
@@ -50,6 +45,12 @@ def createWebsite(request):
|
||||
packages = admin.package_set.all()
|
||||
packagesName = []
|
||||
|
||||
if admin.type == 3:
|
||||
final = {'error': 1, "error_message": "Not enough privilege"}
|
||||
final_json = json.dumps(final)
|
||||
return HttpResponse(final_json)
|
||||
|
||||
|
||||
for items in packages:
|
||||
packagesName.append(items.packageName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user