function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
StaciStaci 

how to get account of current portal users account

I'm looking for a way to limit a custom clone button.  We will be opening up cases so that all partner portal users can see all cases, not just what they own.  When I log in as one partner user, I can see other partner accounts as expected, BUT I can also click our custom Clone button and create a new case for that partner, which should be happen.  Is there a way to limit this in a JavaScript button?  If so, how?