Created a form on my local machine.
For the submit button,I chose ''Custom submit using Rules''.
I set the condition as follows..
If (User's Current Role) is equal to (some username)
then submit using a data connection(to a SharePoint form library)
In the Form options dialog,in the security tab,the checkbox ''Automatically determine security ...