No Code Attached Yet
avatar crystalenka
crystalenka
3 Jan 2022

Steps to reproduce the issue

  1. Create a user group "Test User Group".
  2. Create a user "Test User" and assign to "Test User Group".
  3. As a super user, navigate to the global configuration, and click permissions.
  4. Click "test user group" and ensure it can log in to administrator. Save.
  5. In the configuration, click on media, and click permissions.
  6. Select "Test User Group" and set "Access Administration Interface" and "Create" to "Allowed", and ensure all other permissions are set to "Not Allowed", like so:

Screen Shot 2022-01-03 at 18 26 26

7. Login as "Test User", and go to media manager.

Expected result

Test user can see and navigate media, but cannot rename, delete, or edit images or folders.

Actual result

Test user has full permissions via the quick icons.
Screen Shot 2022-01-03 at 18 28 04

System information (as much as possible)

Joomla 4.0.5
PHP 8

Additional comments

The "create" permission works as expected. It just seems that those icons that appear on hover do not respect permissions at all. This is also true from the image select field.

avatar crystalenka crystalenka - open - 3 Jan 2022
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Jan 2022
avatar brianteeman
brianteeman - comment - 3 Jan 2022

Can you try changing the plugin access levels
image

avatar crystalenka
crystalenka - comment - 3 Jan 2022

I tried that, the icons still show up. It's just that pencil icon takes you to a blank view, which is in itself a bug.

Screen Shot 2022-01-03 at 23 57 23

Screen Shot 2022-01-03 at 23 57 34

There's also no plugin for renaming or deleting, both which I would imagine should respect the permissions in com_media?

avatar brianteeman
brianteeman - comment - 3 Jan 2022

I tried that, the icons still show up. It's just that pencil icon takes you to a blank view, which is in itself a bug.

Ah - thats why I remembered that ;)

avatar dgrammatiko
dgrammatiko - comment - 4 Jan 2022

There's a PR: #36556

avatar crystalenka
crystalenka - comment - 4 Jan 2022

Thanks! I'll test this and the other media manager PR in a little bit.

avatar richard67 richard67 - change - 4 Jan 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-01-04 20:42:02
Closed_By richard67
avatar richard67 richard67 - close - 4 Jan 2022
avatar richard67
richard67 - comment - 4 Jan 2022

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

Add a Comment

Login with GitHub to post a comment