-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Hi,
In order to display or not to display the chart for the current user, I overwrite the get_data method of BaseLineChartView class such as :
def get_data(self):
"""If not authorized, do not display chart"""
if not self.request.user.is_superuser:
return False
And this works and chart is not displayed as intended. But is there any other better practice for permission management?
Thank You
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels