(cls, config=None)
return config.grant_view_to_public
Returns True if the current user is allowed to view dashboards, otherwise false.
Returns True if the current user is allowed to view dashboards, otherwise false.
Returns True if the current user is allowed to view dashboards otherwise false .
def CanView(cls, config=None):
    """Returns True if the current user is allowed to view dashboards, otherwise false."""
    if users.is_current_user_admin():
      return True

    config = config or explorer_config.ExplorerConfigModel.Get()
    return config.grant_view_to_public
def CanView ( cls , config = None ) : if users . is_current_user_admin ( ) : return True config = config or explorer_config . ExplorerConfigModel . Get ( ) return config . grant_view_to_public