error when setting security on sales order confirmation function

Dear All,

 I created a custom role for confirming sales orders when testing the role I got the error "Access denied: SalesFormLetter_Confirm". I have then added in the related privilege in AOT a permission to a server method named

SalesFormLetter_Confirm.confirm . yet I still get the same error. what is missing



Thanks for your help