1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed 'Post new profile posts'

Discussion in 'Resolved Bug Reports' started by Jeremy P, Jul 15, 2011.

  1. Jeremy P

    Jeremy P Well-Known Member

    Setting this permission to 'Never' for any user results in the update status box being removed from their profile page and user navigation dropdown, but the 'Update Status' box still appears in their User CP.

    I think it should be wrapped in a condition so we could effectively disable users from updating their statuses with this permission.
     
    ragtek likes this.
  2. ragtek

    ragtek Guest

    IMHO the complete part is buggy.

    1. the tab is always shown. there's no check if somebody can see this
    Code:
    <li><a href="{$requestPaths.requestUri}#profilePosts">{xen:phrase profile_posts}</a></li>
    should be
    Code:
    <xen:if is="{$canViewProfilePosts}">
                        <li><a href="{$requestPaths.requestUri}#profilePosts">{xen:phrase profile_posts}</a></li>
                        </xen:if>
    
    2. you show also the tab content, and if somebody is not allowed to see it, he gets
    Code:
    <div id="NoProfilePosts">{xen:phrase there_no_messages_on_xs_profile_yet, 'name={$user.username}'}</div>
    But that's not true. There are maybe profile posts,so he shouldn't get the false message.

    IMHO the if condition should be fixed and surround the complete <li>...</li>

    Steps to reproduce:
     
  3. erich37

    erich37 Well-Known Member

  4. Jeremy P

    Jeremy P Well-Known Member

    erich37 likes this.
  5. Mike

    Mike XenForo Developer Staff Member

    The main reported issue has been fixed (actually fixed a while ago). It may be reasonable to remove the profile posts tab if there's no permission to it, but that is separate.
     

Share This Page