thekevinday pointed out that some redundant code could be eliminated with a workbench_access_active_options() function and that function would be used in Rules support. #1285110-22: Add support for Rules, Actions, and Triggers

I'm starting this issue to add that function prior to adding Rules support.

Comments

stevector’s picture

thekevinday’s picture

Should this also be static cached after the function call, or is that overkill?

agentrickard’s picture

Status: Active » Needs review

Probably couldn't hurt. the tree and other vars should already be cached.

agentrickard’s picture

Priority: Normal » Major

Bumping, as this blocks other issues.

thekevinday’s picture

I've not had any problems with it.
It seems the latest dev has had quite a large number of changes so I am rebuilding the patch.

agentrickard’s picture

Thanks.

agentrickard’s picture

Re-roll.

agentrickard’s picture

Status: Needs review » Fixed

Committed.

   bf8ee86..c5ad3d7  7.x-1.x -> 7.x-1.x
agentrickard’s picture

StatusFileSize
new606 bytes

Minor follow-up.

   c5ad3d7..1127c75  7.x-1.x -> 7.x-1.x
agentrickard’s picture

Category: task » bug
Status: Fixed » Active

Bah. This patch causes a fatal regression. See #1869088: Restrict sections by access option for new content

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new506 bytes

Fix for the regression.

Needs a test.

agentrickard’s picture

Priority: Major » Critical
StatusFileSize
new3.77 KB

And a patch with a baseline test.

Please review.

agentrickard’s picture

Status: Needs review » Fixed
StatusFileSize
new3.92 KB

Since no one ever tests anything.....

Committed the attached version.

   d98c63a..3487bb6  7.x-1.x -> 7.x-1.x

Status: Fixed » Closed (fixed)

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