Registered users allowed to upload Photo Gallery photos on other member profiles

2 years 11 months ago - 2 years 11 months ago #324578 by boyjahq
We are recently having a problem similar to this post: Display problem with cb_gallery into the profile tab . In that post they were able to solve the problem but there were no specifics about how it was solved.

We have 2 different types of members, each type of member is assigned to a different usergroup and have access to different subscription plans. We also have a different Photo Gallery field for each type of member that is set to a specific asset reference for each type of member. We have essentially set these up with identical settings except for the asset and the conditional that determines which type of member that the specific Photo Gallery field is visible.

One of these works perfectly. The user is able to upload photos to their own gallery and is able to view photos in the profile gallery of other users.

The other member type, however, is able to upload photos to their own gallery but also to the gallery on other user profiles of the same member type.

We have tried every possible combination of settings under Photo Gallery plugin, settings for the specific CB field for the profile gallery but we cannot solve this issue.

Can you give us some idea where we should be looking in terms of settings for a solution? And if you need to know more about specific settings, please tell us which settings we should show you.

We did not have this problem a while ago and only noticed it recently but we cannot say for sure when it started. You did give us some advice about asset settings ( CB Gallery module suddenly stopped showing photos ). Could that possibly be connected to this issue?

For reference, the asset for the one that works correctly is "user" (no quotes) and the asset for the one that is giving problems is host.[user_id]...

Please Log in to join the conversation.

2 years 11 months ago #324583 by krileon
That's working as expected. You're using a global gallery asset, which in your other topic as I understood is what you wanted. It won't check profile access permissions for a global gallery asset like that. As for "user" working that's because it's just being converted to "profile.[user_id]" which "user" is a shorthand for, which is a profile specific asset. You might be able to do something like the below.

profile.[user_id].host

Then in your module use.

profile.%.host

But this might just cause your original issue in your module all over again with access checks.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds

Facebook Twitter LinkedIn