Authenticated users cannot use the module.

Created on 1 April 2024, 8 months ago
Updated 11 May 2024, 6 months ago

Problem/Motivation

While the module does work for user 1 the module doesn't work for regular authenticated users, right now. It seems there is a permission required that doesn't exist.

Steps to reproduce

Install Prismjs module
Enable button and filter in /admin/config/content/formats/manage/basic_html?destination=/admin/config/content/formats
save the form
enable the forum module as well
create a forum topic as user 1 or admin and add some examples in the body useing the prism js button
save the content
create a regular authenticated user
make sure that authenticated users have permission to write comments
log in as authenticated user not user 1
create a comment for your forum topic
click the prism button

result: The JS console shows {"message":"The \u0027use text format advanced\u0027 permission is required."} while the statuscode of /prism-js/dialog?_wrapper_format=drupal_modal is 403

So currently there is no chance usual users can use prism.

Proposed resolution

Remaining tasks

find root cause
create a patch
review patch
re-release

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

1.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany joachim namyslo Kulmbach πŸ‡©πŸ‡ͺ πŸ‡ͺπŸ‡Ί

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

Comments & Activities

  • Issue created by @joachim namyslo
  • Status changed to Needs review 7 months ago
  • πŸ‡³πŸ‡΅Nepal sujan shrestha NepalπŸ‡³πŸ‡΅, Kathmandu

    Hi @Joachim Namyslo Thank you for the bug report. I've adjusted the permissions for the route, and it appears to be working now. Could you please verify?

  • Status changed to RTBC 6 months ago
  • πŸ‡©πŸ‡ͺGermany joachim namyslo Kulmbach πŸ‡©πŸ‡ͺ πŸ‡ͺπŸ‡Ί

    Works perfectly now. Even for Authenticated users without the administrator role

Production build 0.71.5 2024