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
ashish jadhav 9ashish jadhav 9 

Suppose I've a class which has 3 methods, now each method should run for particular user, how can I achieve this?

How can I create a method which run for specific logged in user? Lets say I've 3 method A, B & C. Now A should run for user1, B & C for user 2 & user 3, so how to do this?
You can create a 4th method, that checks for a particular user type and redirect your code to the relevant logic.
Perhaps you may want to elaborate a bit more on that as well