Skip to Content Skip to Menu

[SOLVED] ajax change password not saved - not allowed to see this page / profile

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
10 years 9 months ago - 10 years 9 months ago #239648 by comyoo
hi,

We don't want to let users see other users full profile. Only on lists.

Now we have the profiles only visible (in config) for super admins.
But now can a registered user not change and save his password via the click- ajax way in his own profile view. We get a message; you are not allowed to see this page (in dutch, not litterly in english).

Can you please have suggestion for us to fix the save of password in ajax-edit?
Last edit: 10 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239658 by krileon
Don't use profile access parameter to limit access to owner and admins only. That's going to cause serious access permission issues for API calls and any/all substitutions. Instead use CB Auto Actions and a Redirect action to keep users other than the owner out. Example as follows to do this.

Type: Redirect
Triggers: onBeforeUserProfileRequest
User: User
Access: All Non-Moderators
Conditional 1: [get_user] Is Not Empty
Conditional 2: [get_user] Not Equal To [user_id]
URL: index.php?option=com_comprofiler

That should cause everyone except moderators to go right back to their profiles if the profile doesn't belong to them.


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.

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
10 years 9 months ago - 10 years 9 months ago #239674 by comyoo
Hi Krileon,

Thank for your quick reply.

We treid this before, but the result is an infited loop, so Firefox is closing the connection. Please have a look at the screenshot.

So we disabled this again. Infited loop is when going to own profile.
Attachments:
Last edit: 10 years 9 months ago by comyoo.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago - 10 years 9 months ago #239703 by krileon
It shouldn't do anything when going to your own profile as the first conditional should cause it to fail. Your screenshot is way too small for me to see your actions configuration, sorry.

Edit: I think I may know what's doing it. Try the below conditionals.

Conditional 1: to_integer([get_user]) Greater Than 0
Conditional 2: to_integer([get_user]) Not Equal To to_integer([user_id])


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: 10 years 9 months ago by krileon.

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

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
10 years 9 months ago #239761 by comyoo
Hi,

Yeah, that is working!
Thank you!

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

Moderators: beatnantkrileon
Powered by Kunena Forum