? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
3 Feb 2022

Pull Request for Issue #36549.

Summary of Changes

Passes the global permissions from the media manager to the client app. The item can define a flag as well to specify if the item itself can be edited/deleted. This allows external adapters to define also per item permissions.

This pr is based on the pr from @dgrammatiko and #36556.

Testing Instructions

  • Check the instructions in issue #36549.
  • Additionally add a canEdit/canDelete flag to the file /plugins/filesystem/local/src/Adapter/LocalAdapter.php on line 344.

Actual result BEFORE applying this Pull Request

Actions are always shown.

Expected result AFTER applying this Pull Request

Actions are only shown when the permissions are correct.

dcefa79 4 Jan 2022 avatar dgrammatiko meh
a5f8f3c 4 Jan 2022 avatar dgrammatiko oops
4e816aa 3 Feb 2022 avatar laoneo cs
c576dc7 3 Feb 2022 avatar laoneo cs
avatar laoneo laoneo - open - 3 Feb 2022
avatar laoneo laoneo - change - 3 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2022
Category JavaScript Administration com_media NPM Change
avatar Quy
Quy - comment - 5 Feb 2022

Delete permission is denied.
No delete button, however, there is a delete item action.

36932-delete

avatar laoneo laoneo - change - 7 Feb 2022
Labels Added: NPM Resource Changed ?
avatar laoneo
laoneo - comment - 7 Feb 2022

Did you do npm ci? As this is something which is handled in the actionItemsContainer.vue file.

avatar Quy
Quy - comment - 7 Feb 2022

Tested with the prebuilt package so no need to npm ci.

avatar laoneo
laoneo - comment - 7 Feb 2022

Was a copy paste error, can you test again?

7b07301 7 Feb 2022 avatar laoneo cs
148be0b 7 Feb 2022 avatar laoneo cs
avatar Quy Quy - test_item - 8 Feb 2022 - Tested successfully
avatar Quy
Quy - comment - 8 Feb 2022

I have tested this item successfully on 95b4f88


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36932.

avatar brianteeman
brianteeman - comment - 8 Feb 2022

Don't know if this is beyond the scope or not. But when you have edit permission but there are no media plugins enabled the pencil icon is still displayed

avatar laoneo
laoneo - comment - 9 Feb 2022

Don't know if this is beyond the scope or not. But when you have edit permission but there are no media plugins enabled the pencil icon is still displayed

I would handle this is in it's own pr.

avatar brianteeman brianteeman - test_item - 9 Feb 2022 - Tested successfully
avatar brianteeman
brianteeman - comment - 9 Feb 2022

I have tested this item successfully on 29fd7f8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36932.

avatar Quy Quy - alter_testresult - 9 Feb 2022 - Quy: Tested successfully
avatar Quy Quy - change - 9 Feb 2022
Status Pending Ready to Commit
avatar Quy
Quy - comment - 9 Feb 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36932.

avatar roland-d
roland-d - comment - 10 Feb 2022

@laoneo Can you please check the conflicts?

avatar laoneo
laoneo - comment - 11 Feb 2022

Done

avatar roland-d roland-d - change - 13 Feb 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-02-13 15:35:21
Closed_By roland-d
Labels Added: ?
avatar roland-d roland-d - close - 13 Feb 2022
avatar roland-d roland-d - merge - 13 Feb 2022
avatar roland-d
roland-d - comment - 13 Feb 2022

Thanks everybody.

Add a Comment

Login with GitHub to post a comment