Skip to content

Commit

Permalink
修复下载权限名字错误
Browse files Browse the repository at this point in the history
  • Loading branch information
weideguo committed Apr 1, 2022
1 parent a8967be commit 0d4b512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def sqlquery(request):
# 收藏语句
user = request.user
favorites = QueryLog.objects.filter(username=user.username, favorite=True).values('id', 'alias')
can_download = 1 if user.has_perm('sql.download') or user.is_superuser else 0
can_download = 1 if user.has_perm('sql.query_download') or user.is_superuser else 0
return render(request, 'sqlquery.html', {'favorites': favorites, 'can_download':can_download})


Expand Down

0 comments on commit 0d4b512

Please sign in to comment.