- Posts: 39
- Thank you received: 0
OS Property support center
Property added twice for new agent
- Napoleon
- Topic Author
- Offline
- Junior Member
-
Less
More
8 years 3 months ago - 8 years 3 months ago #92918
by Napoleon
Property added twice for new agent was created by Napoleon
The agent added a property before they were approved (ie manual approval) but when they saved, they got a 500 error.
So I approved the agent.
The agent used the back button and saved their property again, and this time it succeeded.
However, when the agent wen to manage their properties, that property was in the system twice. One was published (2nd one), the other (presumably the 1st one since the ID# is smaller) was not published.
So I approved the agent.
The agent used the back button and saved their property again, and this time it succeeded.
However, when the agent wen to manage their properties, that property was in the system twice. One was published (2nd one), the other (presumably the 1st one since the ID# is smaller) was not published.
Last edit: 8 years 3 months ago by Napoleon. Reason: Corrected Error Code
Please Log in or Create an account to join the conversation.
- Napoleon
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 0
8 years 3 months ago #92921
by Napoleon
Replied by Napoleon on topic Property added twice for new agent
I can confirm that the property is entered into the database before the user has (a) become an agent (ie they just post a property), and (b) before they are approved.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
8 years 3 months ago #92976
by Mr. Dam
Replied by Mr. Dam on topic Property added twice for new agent
Hi Napoleon,
You mean the Unapproved agent still able to access the "Add property" layout?
Thanks
Dam
You mean the Unapproved agent still able to access the "Add property" layout?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Napoleon
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 0
8 years 3 months ago #93076
by Napoleon
Replied by Napoleon on topic Property added twice for new agent
Yes.
When the home page is the "Layout: Front Page", after the registered user requests to become an agent, the front page gives them the "Add new property" button, even before they have been approved.
They can use this button to enter their property, and it goes into the database UNPUBLISHED, so others can't see it. However it does go into the database.
When the home page is the "Layout: Front Page", after the registered user requests to become an agent, the front page gives them the "Add new property" button, even before they have been approved.
They can use this button to enter their property, and it goes into the database UNPUBLISHED, so others can't see it. However it does go into the database.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
8 years 3 months ago #93271
by Mr. Dam
Replied by Mr. Dam on topic Property added twice for new agent
Hi,
So you want the unapproved agent isn't able to post properties at front-end, right?
Dam
So you want the unapproved agent isn't able to post properties at front-end, right?
Dam
Please Log in or Create an account to join the conversation.
- Napoleon
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 0
8 years 3 months ago #93290
by Napoleon
Replied by Napoleon on topic Property added twice for new agent
Well, yes. Doing so prevents unauthorised data from being in the database and makes managing properties easier. Also, it allows unauthorised users to put data into the database and make it grow.
Please Log in or Create an account to join the conversation.
- Napoleon
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 0
8 years 3 months ago #93422
by Napoleon
Replied by Napoleon on topic Property added twice for new agent
Thanks for fixing this on my site. I suspect that this patch should be included in the next release of OS_Property. I don't think people would like to have data inserted into their database (particularly by a malicious user) when they are not authorised to do so.
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.