Hi,

I was reading about the issue http://drupal.org/node/1338768 and I was wandering if someone can integrate into Rules module. It could be a very useful addition.

Thanks,
Perry.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mavame’s picture

Issue summary: View changes
FileSize
2.19 KB

Hi, I wrote a patch.

mavame’s picture

The previous patch was missing the eval callback.

Mac_Weber’s picture

Status: Active » Needs review

Sending to testbot

The last submitted patch, 1: rules-user-has-permission-1418978.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 2: rules-user-has-permission-1418978.patch, failed testing.

TR’s picture

Version: 7.x-2.0-rc2 » 7.x-2.x-dev
Status: Needs work » Needs review
Issue tags: +Needs tests

Patch still applies, tests pass. However, there should be a new test for this new condition ... also there are two minor coding standards issues (which weren't issues when the patch was originally written ...)

Those things need to be fixed if this is going to be committed, but I'm going to leave the status at "Needs review" for now to see if that will prompt some people to try this patch and review it ...

TR’s picture

Version: 7.x-2.x-dev » 8.x-3.x-dev
Status: Needs review » Needs work

Moving to 8.x-3.x. There doesn't seem to be much interest in adding this, but if it is added it should go into the current version of Rules first. It can then be backported to 7.x-2.x if there is community interest.