Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7944

Ban-link visible in your own profile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.4
    • 3.0.3
    • None
    • PHP Environment:
      Database:

      The link to ban a user is visible in your own profile.
      after a few seconds in the qa-channel this is supposed to be a bug

      memberlist.php
      find:

      'U_USER_BAN'			=> ($auth->acl_get('m_ban')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=ban&mode=user&u=' . $user_id, true, $user->session_id) : '',


      replace with:

      'U_USER_BAN'			=> ($auth->acl_get('m_ban') && $user->data['user_id'] != $user_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=ban&mode=user&u=' . $user_id, true, $user->session_id) : '',

            Acyd Burn Meik Sievertsen [X] (Inactive)
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: