• Resolved newbeeon

    (@newbeeon)


    Hi @carazo

    I (as Administrator) created lots of email templates to be sent to new users whenever importing users. I did test several times and work wonderfully.

    But when I assign an Assistant (role as Author, even Editor) to do just the same, he can select any email template (Mail Option tab) to be used, but he found that when he click button next to it (Load subject, content, attachment from this email template), nothing happen. The email body doesn’t change. It’s just the same as with previous selected one.

    What role needed to be able to select email template, load and use it?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @newbeeon,

    Not sure, but what it would be OK is that we must use the same role for every task in this plugin.

    Let me check it and fix it.

    I will come back when I have it solved.

    Plugin Author Javier Carazo

    (@carazo)

    @newbeeon,

    This is strange, this action is made by an ajax that is not restricted by a role or capability check.

    There is some nonce error into ajax call?

    Thread Starter newbeeon

    (@newbeeon)

    There’s no nonce error. No error message whatsoever.

    Any direction for me to investigate further?

    Plugin Author Javier Carazo

    (@carazo)

    Uhm, not sure.

    Could you give me access to your site? An staging site?

    Thread Starter newbeeon

    (@newbeeon)

    After further testing, I found that only Administrator and Editor are able to select and load the email template on Mail Option tab.

    So if I want to create a new role, what capability this “select and load” is?

    Plugin Author Javier Carazo

    (@carazo)

    Good morning,

    This AJAX action calls:

    $email_template = get_post( intval( $_POST[’email_template_selected’] ) );
    $attachment_id = get_post_meta( $email_template->ID, ’email_template_attachment_id’, true );

    get_post and get_post_meta. Maybe the problem is there.

    Could you tell me which is the AJAX output for this action? With the roles which is not working.

    Plugin Author Javier Carazo

    (@carazo)

    Some of the capabilities which have editor that have not the other roles:

    Roles and Capabilities

    Tell me the output of the ajax call and we will try to investigate.

    Thread Starter newbeeon

    (@newbeeon)

    Could you tell me which is the AJAX output for this action?

    How do we know the AJAX output from above AJAX call?

    Plugin Author Javier Carazo

    (@carazo)

    Look at the network tab into developers tools in your browser.

    Thread Starter newbeeon

    (@newbeeon)

    Hello @carazo

    I’m about send the login credentials for you to take look on this strange behavior. Where should I send it?

    Thanks

    Plugin Author Javier Carazo

    (@carazo)

    Write us to contacto AT codection DOT com

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Email Template’ is closed to new replies.