Skip to content

Commit

Permalink
Update to latest Flag API
Browse files Browse the repository at this point in the history
Fixes Gizra#102.
  • Loading branch information
hdpe committed Oct 5, 2017
1 parent ad10483 commit 9ca5e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_subscribe_email/message_subscribe_email.module
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function message_subscribe_email_flag_action_access($action, FlagInterface $flag

// Get the other flags on that same content.
/** @var \Drupal\flag\FlaggingInterface[] $user_flaggings */
$user_flaggings = \Drupal::service('flag')->getAllEntityFlaggings($flaggable, $account);
$user_flaggings = \Drupal::service('flag')->getAllEntityFlaggings($flaggable, $account, \Drupal::request()->getSession()->getId());
$user_flags = [];
foreach ($user_flaggings as $flagging) {
$user_flags[$flagging->getFlagId()] = $flagging;
Expand Down

0 comments on commit 9ca5e60

Please sign in to comment.