parameters: (cls, config=None)
return_statement: return config.grant_view_to_public
docstring: Returns True if the current user is allowed to view dashboards, otherwise false.
docstring_summary: Returns True if the current user is allowed to view dashboards, otherwise false.
docstring_tokens: Returns True if the current user is allowed to view dashboards otherwise false .
function: 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
function_tokens: 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