code: def checkUserManage(worksheet, request, redirect=True):
      
      allowed = worksheet.checkUserManage()
      if allowed == False and redirect == True:
          # Redirect to /manage_results view
          destination_url = worksheet.absolute_url() + "/manage_results"
          request.response.redirect(destination_url)
docs: Checks if the current user has granted access to the worksheet
          and if has also privileges for managing it. If the user has no
          granted access and redirect's value is True, redirects to
          /manage_results view. Otherwise, does nothing