def allowed(self, context):

        # if the dashboard has policy rules, honor those above individual
        # panels
        if not self._can_access(context['request']):
            return False

        # check if access is allowed to a single panel,
        # the default for each panel is True
        for panel in self.get_panels():
            if panel.can_access(context):
                return True

        return False
Checks for role based access for this dashboard.
dataset/ETHPy150Open CiscoSystems/avos/horizon/base.py/Dashboard.allowed