I have a button in a content editor that I only want certain users to be able to click. I am wondering if I give users either read or view only if they are able to click the button? I don't care if the button is visible to everyone, but it updates values that I want restricted to select users to update.
Alternatively, I have placed the button in a separate web part that I can hide entirely from users I don't want to click it but I am not sure how to set permissions/visibility at the web part level. I have read about "Audience Targeting" but I am not seeing that option when I edit my webpart.
Help with either solution would be greatly appreciated.
EDIT: Additional clarification, this is not a doc library or custom list. I am simply dealing with 2 content editors with HTML and JS in them. In the one area I display a counter, the other area I want to restrict allows for updating of this counter.