code: func validatePermission(ctx context.Context, perm platform.Permission) error {
  	auth, err := platcontext.GetAuthorizer(ctx)
  	if err != nil {
  		return err
  	}
  
  	if !auth.Allowed(perm) {
  		return authError{error: ErrFailedPermission, perm: perm, auth: auth}
  	}
  
  	return nil
  }
docs: // TODO(lh): add permission checking for the all the platform.TaskService functions.