No Code Attached Yet Guided Tours
avatar heelc29
heelc29
15 Sep 2024

Steps to reproduce the issue

  • Create an user and assign it to the “Manager” group
  • Visit the backend

Expected result

no error

Actual result

If you open home dashboard the "Welcome to Joomla!" tour starts
When click "Cancel" or "Hide Forever" an error appears (also when you try to finish the tour)
image

Console Error:
/administrator/index.php?option=com_guidedtours&task=ajax.fetchUserState&format=json&tid=12&sid=1&context=tour.skip

{
    "error": true,
    "code": 403,
    "message": "You don't have permission to access this. Please contact a website administrator if this is incorrect."
}

This error is also present if you try to cancel any other tour.

System information (as much as possible)

j5.2.0-beta3-dev

Additional comments

Caused by #43814
Should be a release blocker

avatar heelc29 heelc29 - open - 15 Sep 2024
avatar joomla-cms-bot joomla-cms-bot - change - 15 Sep 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Sep 2024
avatar richard67 richard67 - change - 15 Sep 2024
Labels Added: Release Blocker
avatar richard67 richard67 - labeled - 15 Sep 2024
avatar richard67
richard67 - comment - 15 Sep 2024

Ping @obuisard

avatar richard67 richard67 - change - 15 Sep 2024
Labels Added: Guided Tours
avatar richard67 richard67 - labeled - 15 Sep 2024
avatar obuisard
obuisard - comment - 15 Sep 2024

I can reproduce the problem. Looking into it.

avatar obuisard
obuisard - comment - 15 Sep 2024

It is a permission issue. We call the Ajax controller fetchUserState but the Manager is missing the Access Administration Interface permission for /administrator/index.php?option=com_guidedtours&task=ajax.fetchUserState&format=json&tid=12&sid=1&context=tour.skip to go through

avatar dautrich
dautrich - comment - 15 Sep 2024

I got the identical error message after logging in as Super User when I clicked Complete at the end of the Welcome Tour.

avatar obuisard
obuisard - comment - 15 Sep 2024

I got the identical error message after logging in as Super User when I clicked Complete at the end of the Welcome Tour.

@dautrich Rolf, what was the error in the browser console?

avatar dautrich
dautrich - comment - 15 Sep 2024

When I tried for the first time, I didn't have a look at the browser console (shame on me).
I deleted everything (db + directory) and started from scratch. But this time I didn't get any error. Strange!

avatar obuisard
obuisard - comment - 15 Sep 2024

When I tried for the first time, I didn't have a look at the browser console (shame on me). I deleted everything (db + directory) and started from scratch. But this time I didn't get any error. Strange!

Thanks, I am glad because it should not happen... But still concerning why it happened the first time.

avatar obuisard
obuisard - comment - 15 Sep 2024

I have created a fix. Please wait for PR. I created a Dispatcher for Guided Tours, none was provided.

avatar richard67 richard67 - change - 15 Sep 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-09-15 17:55:08
Closed_By richard67
avatar richard67 richard67 - close - 15 Sep 2024
avatar richard67
richard67 - comment - 15 Sep 2024

Closing as having a pull request. Please test #44082 . Thanks in advance.

avatar richard67 richard67 - change - 15 Sep 2024
Labels Removed: Release Blocker
avatar richard67 richard67 - unlabeled - 15 Sep 2024

Add a Comment

Login with GitHub to post a comment