Skip to content

[Port to dtq-dev] Issue ufal/clarin-dspace#1321: disable File preview for files where user has no Bitstream READ permission#1280

Merged
milanmajchrak merged 1 commit into
dataquest-dev:dtq-devfrom
ufal:backport-1327-to-dtq-dev
May 5, 2026
Merged

[Port to dtq-dev] Issue ufal/clarin-dspace#1321: disable File preview for files where user has no Bitstream READ permission#1280
milanmajchrak merged 1 commit into
dataquest-dev:dtq-devfrom
ufal:backport-1327-to-dtq-dev

Conversation

@kosarko
Copy link
Copy Markdown

@kosarko kosarko commented Mar 16, 2026

Port of ufal#1327 by @kuchtiak-ufal to dtq-dev.

…m READ permission (#1327)

* Issue 1321: disable File preview for files where the user has no Bitstream READ permission

* resolve Copilot comments

* alow file preview in case only the License agreement is needed

* don't allow to create file preview for non-authorized user, nor for item that requires license confirmation

* fixed failing FilePreviewIT test. Now only the user with file READ permission can generate file preview

* add more tests for HTML file preview

* add test for HTML File preview

* improve warning messages

* extend test to see if non admin user can see already generated file preview

---------

Co-authored-by: Ondřej Košarko <ko_ok@centrum.cz>
(cherry picked from commit 50d7bbc)
@milanmajchrak milanmajchrak merged commit a13cca5 into dataquest-dev:dtq-dev May 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants