code: def http_basic_auth_permissions_required(permissions):
      
  
      if isinstance(permissions, six.string_types):
          return auth.set_authentication_predicate(http_basic_auth_check_user, [auth.user_has_perm, permissions])
      else:
          return auth.set_authentication_predicate(http_basic_auth_check_user, [auth.user_has_all_perms, permissions])
docs: Decorator. Use it to specify a RPC method is available only to logged users with given permissions