• Resolved Artan

    (@artankrasniqi1988)


    Hi,

    any chance to restrict access for certain user roles or to let only admin see admin menu entry and access. Something similar like this possible?

    define( 'GOOGLE_REVIEWS', 'manage_options' );

    Or other code snippet like this?

    ...
    if (!current_user_can('install_plugins')) {
    }
    ...

    If you could provide a code snippet it would be amazing. By the way, thanks for the great plugin!

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author richplugins

    (@widgetpack)

    Hi @artankrasniqi1988,

    Thank you for your topic!

    To better understand the issue, could you tell us what exactly you need to do from a business point of view? That is, what specific task are you solving by limiting the menu?

    Thanks!

    Thread Starter Artan

    (@artankrasniqi1988)

    Hi @widgetpack,

    I would like to have the possibility to restrict access to the plugin for certain user roles. For example I don´t want that user role “Author” can see the admin menu entry as a whole nor accessing the plugin via the url directly.

    At the moment it seems that settings are hidden for mentioned role. Some plugins for example let the admin decide through permissions like mentioned in my previous comment.

    That would be pretty nice, as our authors don´t need to see the admin entry nor should they access it via url to mess with it. Should be limited as desired.

    Hope this helped to understand my request.

    Kind regards

    Plugin Author richplugins

    (@widgetpack)

    Hi @artankrasniqi1988,

    Thank you for detailed description of this topic. Now it’s clear.

    At the moment the role Author can create reviews widget (connect Google reviews), but not change a settings. For instance, this can be useful if the author wants to show reviews in their post.

    By the way, there are several plugins designed specifically for differentiating roles and menus (pages), and it might be worth considering one of them, as they are tailored for this purpose.

    So, we will take into account that such an option is needed. However, I cannot say exactly when it can be implemented.

    Thanks!

    Thread Starter Artan

    (@artankrasniqi1988)

    Hi @widgetpack,

    thanks for your reply.

    By the way, there are several plugins designed specifically for differentiating roles and menus […]

    Yes I know but I always think it´s better plugins have it built in house.

    At the moment the role Author can create reviews widget (connect Google reviews) […]

    Yes, have seen it. But in my case the user interface is in infinite loading modus and not showing up.

    But thanks for now, perhaps the feature is coming in future.

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Restrict access to plugin’ is closed to new replies.