Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.4]: Non admin cannot go into subfolder to select an asset #12851

Closed
loqus opened this issue Mar 9, 2023 · 1 comment
Closed

[4.4]: Non admin cannot go into subfolder to select an asset #12851

loqus opened this issue Mar 9, 2023 · 1 comment
Assignees

Comments

@loqus
Copy link

loqus commented Mar 9, 2023

What happened?

Description

A non admin cannot go into subfolders to select an asset.
The modal opens up fine and you can see the structure to the left and the folders in the center part, but those folders are not clickable. User has full rights on the folder.

User gets JS errors:
AssetIndex.js:585: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'on')
at s.constructor._onUpdateElements (AssetIndex.js:585:31)
at s.constructor.onUpdateElements (AssetIndex.js:570:12)
at s.constructor.e [as onUpdateElements] (Base.js:76:36)
at s.constructor._updateView (BaseElementIndex.js:2776:12)
at BaseElementIndex.js:1329:18

BaseElementIndexView.js:173 Uncaught This view is not selectable.

If I change the user permissions to admin it works.

Steps to reproduce

  1. Update to 4.4.0

Expected behavior

User can click into the subfolder to select an asset.

Actual behavior

Js errors, no behaviour on screen in the modal

Craft CMS version

Craft CMS 4.4.0 Pro

PHP version

8.0.25

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! Just released Craft 3.8.1 and 4.4.1 with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants