• Resolved fesarlis

    (@fesarlis)


    I hide several options for user roles < admin. However, the option ‘Bulk optimize’ is still available for Nextgen gallery even though I chose to hide it. Generally speaking, even without hiding the menus, it is available for any user. This is not the case with the respective option in Media library. Happens only in Nextgen.

    https://www.ads-software.com/plugins/ewww-image-optimizer/

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

    (@nosilver4u)

    That menu item is available to anyone with the ‘NextGEN Manage gallery’ permission.

    Thread Starter fesarlis

    (@fesarlis)

    This shouldn’t be the case. Bulk optimization takes a lot of time and resources, especially on sites with many photos. For me as a webmaster, it does not seem like a good idea that an editor (who can only add new posts) can accidentaly/intentionally click on bulk optimize and render the site (and most likely the low-end VPS server) unresponsive until 6000 images are optimized.

    Plugin Author nosilver4u

    (@nosilver4u)

    That code was written a long time ago, so it definitely could be improved. Do you know what other roles would be appropriate for NextGEN? Otherwise, I might use the same as the regular Bulk Optimize (basically WP admin privs, but filterable by custom functions).

    Plugin Author nosilver4u

    (@nosilver4u)

    I was just starting on some documentation for the permissions filters, and realized that even if Bulk Optimize is displayed for a user, they have to have the permissions granted via the ewww_image_optimizer_bulk_permissions filter, which by default requires that they be able to activate plugins (only admins can do that). I’m going to fix the menu item so that it uses the same permissions, and if you want to filter it you can do so with a custom function. If you want to see the documentation for the filter, I can follow up with the link when I’ve finished it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User roles bulk optimize’ is closed to new replies.