function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Check below references for changing ownership of the record.
https://help.salesforce.com/articleView?id=000328566&type=1&mode=1
https://help.salesforce.com/articleView?id=account_owner_transfer.htm&type=5
https://help.salesforce.com/articleView?id=000327372&type=1&mode=1
Also kindly elaborate your ask if the issue is different.
Thanks,
If the current login user is not the owner of the record, then the user should not be able to change the owner. The user should be able to change the ownership, of the records he owned.