'Checks for role based access for this dashboard.
Checks for access to any panels in the dashboard and of the
dashboard itself.
This method should be overridden to return the result of
any policy checks required for the user to access this dashboard
when more complex checks are required.'

def allowed(self, context):

    if (not self._can_access(context['request'])):
        return False
    for panel in self.get_panels():
        if panel.can_access(context):
            return True
    return False
