Pass $node object to guard functions

Created on 13 August 2013, over 11 years ago
Updated 16 May 2024, 6 months ago

In my guard function, where I determine whether the current user can trigger an event or not, I'd like to check if they are the node's author and allow or deny accordingly. However I don't have access to the $node object in the guard function and so can't check this...

Can we add the $node object as an argument to guard functions so as to provide more detailed checking?

Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024