Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Flag for someone else 1.1.0
Run database updates (drush updb) after updating.
Security and access hardening
- The "flag fse [flag]" permission no longer grants the regular flag/unflag
actions for the user themselves.
- The "Flag for someone else" form now checks that the entity exists, is
viewable by the current user, belongs to a bundle the flag applies to,
and that the flag is enabled and not global.
- Only user administrators can create new users from the form; the user
type can no longer be tampered with.
- A user source returning no user (e.g. an empty Organic Group) no longer
falls back to listing all users.
- Blocked users can no longer be selected.
- Email addresses are only shown and searchable with the "View user email
addresses" or "Administer users" permission.
New features
- When fewer than 50 users are available they are listed as checkboxes,
otherwise an autocomplete field accepts one or several users. The
"Single user / Multiple users" choice has been removed.
- A confirmation message is shown after flagging, and the user is
redirected to the flagged entity.
- New bulk action "Flag an entity for the selected users" on users, e.g.
with Views Bulk Operations, to flag an entity for many users at once.
Bug fixes
- Rendering the link without a view mode no longer throws an exception.
- The fallback link no longer temporarily switches the link type of the
flag.
API changes
- FlagFseSourceInterface::getAvailableUsers() must return NULL for "no
restriction" and an empty array for "no user available". Custom user
sources returning [] for "all users" must be updated.
- The flag_fse action plugin now applies to users instead of flaggings; a
post update removes existing actions of the former type.
- Form alters relying on the "search_type" element must be updated.