I added a button to admin order view which sends request to an url of an action controller (using ajax), and now I need to somehow make it available only for admin. What is the best solution for this problem? Also I can abandon ajax if there is a better option for the button.
Possible solution that occurred to me is to add something to header and then check it in the action function.