def get_user_capabilities(self, email):
    """ Queries the UserAppServer to learn what actions the named user is
    authorized to perform in this AppScale deployment.

    Args:
      email: A str containing the email of the user whose authorizations we want
        to retrieve.
    Returns:
      A list, where each item is a str corresponding to an action this user is
      authorized to perform in this AppScale deployment.
    """
    if email in self.cache['user_caps']:
      return self.cache['user_caps'][email]

    try:
      capabilities = self.get_uaserver().get_capabilities(email,
        GLOBAL_SECRET_KEY).split(self.USER_CAPABILITIES_DELIMITER)
      self.cache['user_caps'][email] = capabilities
      return capabilities
    except Exception as err:
      logging.exception(err)
      return []
dataset/ETHPy150Open AppScale/appscale/AppDashboard/lib/app_dashboard_helper.py/AppDashboardHelper.get_user_capabilities/original