Open AliPolat opened 2 years ago
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
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