Tokens not displayed unless Views Send used by Administrator (User 1)

Created on 25 May 2022, over 2 years ago
Updated 4 December 2023, about 1 year ago

Problem/Motivation

User Tokens are displayed if the email originator is Administrator (User 1) but not for Users without Administrator rights, in those cases the Token is returned as a NULL value

🐛 Bug report
Status

Fixed

Version

1.6

Component

Code

Created by

🇬🇧United Kingdom cebab54

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.

  • 🇳🇴Norway hansfn

    Sorry about the very late reply. I assume this is related to missing the "View user information" permission.

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

  • Status changed to Fixed about 1 year ago
  • 🇬🇧United Kingdom cebab54

    Hello

    Can you please explain what you mean by "Content Editor", I cannot find this permission in my install of Views Send permissions or anywhere else in the permissions for Drupal 9?

    Thanks

    cebab54

  • 🇳🇴Norway hansfn

    See attached picture.

    PS! The bug is reported against 8.x-1.6. I hope you use 2.0.x-dev

  • 🇬🇧United Kingdom cebab54

    I was using 2.0.0-rc1 - original query raised before v2.0.0 was made available

    Have now updated to the Version 2.0 dev version, but permissions remain the same, see picture attached

  • 🇬🇧United Kingdom cebab54

    So, if the Assistant Secretary tries to send an email via Views Send, see attached screenshot using either simply tokens from Views Send and/or general tokens, the Views Send tokens are ignored, but the general tokens (date) is included (see second screenshot attached). Although when sending the email, the 'SEND' results in errors - see third attached screengrab.

    ONLY if the Administrator (User 1) tries this will the View Send emails with tokens be sent and the tokens expanded as expected.

  • 🇳🇴Norway hansfn

    Regarding, using the dev module and the following warning:

    Undefined array key "views_send_bulk_form" in _views_send_get_fields_and_tokens()

    You have to create a new issue. This is something different than tokens. There is no way we can handle these two problems in the same issue - sorry. (There is no need to supply logs following that warning - the rest is just a consequence.) You could try to create a new views, just to see if that makes any difference. Anyway, it has to be a new issue.

    Back to the tokens:

    [...] Assistant Secretary tries to send an email via Views Send, see attached screenshot using either simply tokens from Views Send and/or general tokens, the Views Send tokens are ignored

    They aren't ignored. They are parsed and producing no output. Where is field_member_firstname_1 coming from - a relation to something? Could you test with something like [views-send:title] that normally doesn't require any access permission?

Production build 0.71.5 2024