Adjustment to be able to show ALL domain in dashboard table

This commit is contained in:
Khanh Ngo 2018-03-30 15:40:43 +07:00
parent f318c437c1
commit 63e7d89df1

View File

@ -338,6 +338,8 @@ def dashboard_domains():
start = int(request.args.get("start", 0))
length = min(int(request.args.get("length", 0)), 100)
if length != -1:
domains = domains[start:start + length]
if current_user.role.name != 'Administrator':