Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CB Privacy ignores tab setting of private

  • warburto
  • warburto
  • OFFLINE
  • Posts: 10
  • Thanks: 3
  • Karma: 0
  • Add-ons
11 years 2 months ago - 11 years 2 months ago #232757 by warburto
Joomla 2.5.11, CB 1.9, CB Privacy 3.1.0

Have set privacy settings on tabs to "Moderators can control privacy"

When setting tabs to "Private" for a profile, the setting is ignored, and the tab data is displayed to any registered user when the profile is displayed. When using "Connections" as the privacy control, all is fine. See attached screen shots of privacy entries. Profile @mlevcw has three tabs set to private, but visible to any user.
Attachments:
Last edit: 11 years 2 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #232777 by krileon
Replied by krileon on topic CB Privacy ignores tab setting of private
CB Moderators and the profile owner themselves are exempt from the privacy controls. So regardless of what you set it to the profile owner will still see their own tab as well as moderators can see it. Ensure you didn't set everyone to be a moderator within CB > Configuration > Moderation. Then ensure you're testing a normal registered user viewing another user instead of viewing themselves.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • warburto
  • warburto
  • OFFLINE
  • Posts: 10
  • Thanks: 3
  • Karma: 0
  • Add-ons
11 years 2 months ago #232788 by warburto
Replied by warburto on topic CB Privacy ignores tab setting of private
Yep understand the moderator and profile owner views. This is a normal registered user (not moderator) viewing a moderator profile that has privacy tab restrictions. The tab restrictions are ignored and the tab data displayed.

CB>Configuration>Moderation set to Administrator.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #232794 by krileon
Replied by krileon on topic CB Privacy ignores tab setting of private
Does the issue persists if a normal registered user views a normal registered user with the tab set to Private?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • warburto
  • warburto
  • OFFLINE
  • Posts: 10
  • Thanks: 3
  • Karma: 0
  • Add-ons
11 years 2 months ago - 11 years 2 months ago #232828 by warburto
Replied by warburto on topic CB Privacy ignores tab setting of private
This is what I have found. Please be patient if my terminology is not perfect :lol:

I have set Tab Privacy preferences for a Tab to "Display" - User can control privacy, and the "Default" to private. Displaying of profiles all works perfectly, and the tab restriction adhered to.

Now simply change the "Display" to "Moderators can control privacy", and the tab restriction is no longer adhered to .i.e The data for the tab is displayed despite being private.

I need the Moderator level because clients don't need to control the privacy, it is automatic.
Last edit: 11 years 2 months ago by warburto.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago - 11 years 2 months ago #232841 by krileon
Replied by krileon on topic CB Privacy ignores tab setting of private
Ah, looks like a bug. Was able to confirm your issue. I can not make a new release at this time as plugin has been partially updated for next CB release, but I can provide you a quickfix as follows. Confirmed resolves the issue. Please apply the quickfix and confirm if your issue is resolved or not.

IN: /components/com_comprofiler/plugin/user/plug_cbprivacy/tab.cbprivacy.php
ON: Line 130
FROM:
Code:
if ( ( $display == 1 ) || ( ( $display == 2 ) && isModerator( $myId ) ) ) {
TO:
Code:
if ( ( $isDisplay && ( ( $display == 1 ) || ( $display == 2 ) ) ) || ( $isSave && ( $display == 2 ) && isModerator( $myId ) ) || ( $isSave && ( $display == 1 ) ) ) {


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 2 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum