Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By joachim on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-3.x
Introduced in version:
7.x-3.0-beta1
Issue links:
Description:
Previously, the last module to implement hook_flag_access() would 'win', in that its return value of TRUE or FALSE would be taken as the access value, to grant or deny access to the flag for the user.
This has now changed to follow a more standard pattern:
- Modules may return NULL to indicate that they are not participating in the access check
- If any module returns FALSE, access is denied
- If no module returns FALSE, and at least one module returns TRUE, access is granted
- If no module returns TRUE or FALSE (i.e. they all return NULL), then Flag core access is used
Impacts:
Module developers