Skip to content

Commit

Permalink
Fix current_user can not be used on can_view_details and can_export
Browse files Browse the repository at this point in the history
  • Loading branch information
xqliu committed Apr 22, 2016
1 parent bacca15 commit b07d1ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flask_admin/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,12 +826,10 @@ def _refresh_cache(self):
self._sortable_columns = self.get_sortable_columns()

# Details view
if self.can_view_details:
self._details_columns = self.get_details_columns()
self._details_columns = self.get_details_columns()

# Export view
if self.can_export:
self._export_columns = self.get_export_columns()
self._export_columns = self.get_export_columns()

# Labels
if self.column_labels is None:
Expand Down

0 comments on commit b07d1ab

Please sign in to comment.