[stable27] fix: Keep download action for files and hide only for relevant files#45344
[stable27] fix: Keep download action for files and hide only for relevant files#45344AndyScherzinger merged 3 commits intostable27from
Conversation
| delete fileActions.actions.all.Comment | ||
| delete fileActions.actions.all.Details | ||
| delete fileActions.actions.all.Goto |
There was a problem hiding this comment.
This seems already done with the permissions checks on the individual actions
artonge
left a comment
There was a problem hiding this comment.
The change make sense, but I am wondering whether the issue was always there or if it was introduced by a recent change.
|
/compile |
nfebe
left a comment
There was a problem hiding this comment.
Changes look okay.
Two questions:
- How to reproduce this bug?
- Only nc27 affected?
Sorry should have mentioned that in the description:
Yes, seems fine with 28+ due to the files2vue migration. |
I tried but wasn't able to come up with a proper fix for this before going on vacation. It seems we're lacking to expose the share attributes that are used to check if the button should be hidden when constructing the objects for the shared file listing. @artonge Maybe @fenn-cs or someone else from the files team can take over this one to get into the second RC? |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
bba6363 to
3c7a526
Compare
Signed-off-by: Christopher Ng <chrng8@gmail.com>
3c7a526 to
b6988c7
Compare
Deleting the file actions if permissions do not apply causes them to generally disappear as the list of file actions to show is built once the user clicks the action menu, not when the file list row is rendered.
This PR will adapt the already existing shouldShow callback that is used for inline actions to regular ones so that we can check at time of displaying the menu with the context of the current file and hide it accordingly.