Skip to content
Snippets Groups Projects
  • Andy Shultz's avatar
    c14aa1c4
    feat: only use anonymous user if there is no other choice · c14aa1c4
    Andy Shultz authored
    Sometimes we need to load the block. Current code always rebinds the
    block to the anonymous user because we might not have a user.
    
    But in many cases we do have a user and may have already loaded and
    bound the block in question. Check for user and request and if the
    block is already bound and just use that block if possible or at least
    load the block with the user you actually have.
    c14aa1c4
    History
    feat: only use anonymous user if there is no other choice
    Andy Shultz authored
    Sometimes we need to load the block. Current code always rebinds the
    block to the anonymous user because we might not have a user.
    
    But in many cases we do have a user and may have already loaded and
    bound the block in question. Check for user and request and if the
    block is already bound and just use that block if possible or at least
    load the block with the user you actually have.