I went to upgrade VBO and to my surprise the module Actions Permissions was removed.

This is a very recent move, and the only thing I see is an announcement on the project page. The announcement says the Actions Permissions module is now deprecated AND removed in 4.3.0.

I'm sure there is a valid reason but I have some questions.

First question: why is it removed?

Second question: why it is deprecated AND removed in one go?

Third question: is there any documentation on how to reimplement this yourself? It really feels like "it's removed and just figure out how to solve it yourselves"...

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pahles created an issue. See original summary.

graber’s picture

Q1: Short answer: Action attribute class in core doesn't allow any additional parameters anymore like annotations did and the module relied on that.
Q2: Because I chose so. The module has absolutely no funding, it's only my courtesy that it still exists, is actively maintained and supported and I don't have any use cases for the submodule anywhere. No one is forced to upgrade to the latest version and everyone is welcome to rewrite the Actions Permissions module and maintain it as a separate contrib project.

Please update the issue title to something meaningful so maybe someone will work on it.

pahles’s picture

Title: Actions Permissions removed » Can Actions Permissions be reinstated?

OK, clear.

I know this is not a democracy or whatever, but a heads up would have been nice. Other people do have use cases for the submodule.

pahles’s picture

Category: Support request » Feature request
graber’s picture

I can work on this but not as a free work as I'm not using this on any of my projects and have enough work with Drupal LMS that I'm doing for the community currently. If anyone else would like to rewrite the module to work with the current API - I'll also support that work.

I recommend those that need it to stay on 4.2.x before it is recreated this way or the other.

chri5tia’s picture

Hello Graber,
Thank you for your work on this module. Do you know which version of Drupal is the last version that the views bulk operations module 4.2 with the actions permissions will work on? I would be interested in getting a crew together to rebuild that functionality if it's helpful, but need to know where this change in the API occurs.

graber’s picture

Would be nice, I cannot answer that question without spending time I don't have on additional research though, quite possible that 4.2.x even works with Drupal 11 because I think old annotations way is not removed yet and my goal was to modernize the code as much as possible. Just test it.

jsimonis’s picture

Yeah, I'm stuck not being able to run my database updates for module updates because of this. I've tried removing VBO, but that doesn't seem to fix the problem. Anyone happen to know?

pahles’s picture

Yeah, I'm stuck not being able to run my database updates for module updates because of this. I've tried removing VBO, but that doesn't seem to fix the problem. Anyone happen to know?

Revert VBO back to 4.2.7 (composer require "drupal/views_bulk_operations:4.2.7"). You will be stuck on 4.2.7. When/if a solution arrives you will be able to change your composer requirement.

abhishek@kumar’s picture

The Actions Permissions module was removed from VBO in version 4.3.0 to simplify permissions and improve security. It was deprecated and removed at once to prevent dependency on outdated functionality. To re-implement similar permissions, consider creating custom permissions or setting up role-specific VBO views.

ertiepie’s picture

Just a note - if like me you upgraded to 4.3.1 without uninstalling Actions Permissions first...

I got a nasty note on the Status report and when running update.php after upgrading - oops.

I tried to downgrade back to 4.2.7 and that completely broke my site. Super oops.

After many upgrade/downgrade/uninstall/reinstalls... I found a way to re-add the actions_permissions module so I could uninstall it after the fact. I'm surprised it worked... but it did!

I downloaded the 4.2.7 tar file, and from within modules folder I grabbed the actions_permissions module folder and dropped it in to the current install (via sftp) - this allowed it to be displayed under Extend > Uninstall and I was able to use that mechanism to uninstall "Actions Permissions" properly.

And then, hooray! The nasty note went away on Status report and update.php - All is well and good... except of course I have no actions permissions :-/

Boooooo.

jsimonis’s picture

ertiepie:

Same. Thankfully, I do run a backup of our account before running updates, so I completely reverted back.

graber’s picture

Status: Active » Needs review

Please test. And if it works well send me a beer because I drank one when rewriting this :P

pahles’s picture

Have to do some more testing, but it seems to be working. Tested as a patch against 4.3.1.

bramdriesen’s picture

Version: 4.3.0 » 4.3.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs project page update

Seems to work fine on first sight. Thanks @graber!

Updating some meta data. Don't forget to update the project page once this is released.

  • graber committed 77cf9b1d on 4.3.x
    Issue #3482519: Can Actions Permissions be reinstated?
    
graber’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for checking it, I should release it today.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.