! I have some questions regarding the affiliates plugin.

Hi !

I have some questions regarding the affiliates plugin.
I'm creating a front-end page with some of the shortcode you gave there.

Here is my questions :
1. I have created a custom template for this page. I want this page to be accessible only for "Super admin" or for the custom role "Partner". All the other visitors have to be redirected to the home page.

2. In this page, I want to display the referral link of the current user, but not all the details that come with the [affiliateuserdetails] shortcode

3. When people log in, I redirect them with a piece of code (that @aristath gave me there). In fact, I would like to redirect people with the role "partner" to the new front-end affiliate page. How can I do that ?

Thank you very much !