mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-02 16:35:40 +00:00
Adjustment to be able to show ALL domain in dashboard table
This commit is contained in:
parent
f318c437c1
commit
63e7d89df1
@ -338,7 +338,9 @@ def dashboard_domains():
|
|||||||
|
|
||||||
start = int(request.args.get("start", 0))
|
start = int(request.args.get("start", 0))
|
||||||
length = min(int(request.args.get("length", 0)), 100)
|
length = min(int(request.args.get("length", 0)), 100)
|
||||||
domains = domains[start:start + length]
|
|
||||||
|
if length != -1:
|
||||||
|
domains = domains[start:start + length]
|
||||||
|
|
||||||
if current_user.role.name != 'Administrator':
|
if current_user.role.name != 'Administrator':
|
||||||
domains = [d[2] for d in domains]
|
domains = [d[2] for d in domains]
|
||||||
|
Loading…
Reference in New Issue
Block a user