• Resolved Max

    (@max22222)


    Hi, when i enable Maintenance, it locks all out except Administrator. But what can i do, if i want to put also the Shop Manager in the except list? I would like to lock all out except Administrator and Job Manager Roles.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support aporter

    (@aporter)

    Hi Max,

    This is not currently possible in the plugin.

    I will add a task to our internal task tracker to look at this.

    For now you could edit the code yourself in the file:


    wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-wp-loaded-tasks.php

    On line 54, replace that line with the following:

    if (is_user_logged_in() && (current_user_can('manage_options') || current_user_can('Shop Manager'))) {

    Note if the plugin updates that line will get reset.

    Best Wishes,

    Ashley

    Thread Starter Max

    (@max22222)

    Awesome, thank you so much ??

    if (is_user_logged_in() && (current_user_can(‘manage_options’) || current_user_can(‘shop_manager’))) {

    • This reply was modified 2 years, 1 month ago by Max.
    • This reply was modified 2 years, 1 month ago by Max.
    • This reply was modified 2 years, 1 month ago by Max.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Maintenance Mode for Shop Manager Role’ is closed to new replies.