mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-17 21:12:14 +01:00
This is achieved by setting a specific DAV attribute. At the moment there is one handler in dav-apps FilesPlugin and it could overwrite the value with "false". We make sure not to downgrade here and prevent downgrade from dav (possible race condition). Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
38 lines
1.5 KiB
Gherkin
38 lines
1.5 KiB
Gherkin
Feature: API
|
|
|
|
Background:
|
|
Given user "user1" exists
|
|
And user "user2" exists
|
|
And admin enables secure view
|
|
|
|
Scenario: Download button is not shown in public shares
|
|
Given as user "user1"
|
|
And User "user1" creates a folder "NewFolder"
|
|
And User "user1" uploads file "./../emptyTemplates/template.odt" to "/NewFolder/file.odt"
|
|
And as "user1" create a share with
|
|
| path | /NewFolder |
|
|
| shareType | 3 |
|
|
Then the download button for "/NewFolder/file.odt" will be visible to "user1"
|
|
And the download button for "file.odt" will not be visible in the last link share
|
|
|
|
Scenario: Download button is not shown in internal read-only shares
|
|
Given as user "user1"
|
|
And User "user1" creates a folder "NewFolder"
|
|
And User "user1" uploads file "./../emptyTemplates/template.odt" to "/NewFolder/file.odt"
|
|
And as "user1" create a share with
|
|
| path | /NewFolder |
|
|
| shareType | 0 |
|
|
| shareWith | user2 |
|
|
| permissions | 1 |
|
|
Then the download button for "/NewFolder/file.odt" will not be visible to "user2"
|
|
|
|
Scenario: Download button is shown in internal shares
|
|
Given as user "user1"
|
|
And User "user1" creates a folder "NewFolder"
|
|
And User "user1" uploads file "./../emptyTemplates/template.odt" to "/NewFolder/file.odt"
|
|
And as "user1" create a share with
|
|
| path | /NewFolder |
|
|
| shareType | 0 |
|
|
| shareWith | user2 |
|
|
| permissions | 31 |
|
|
Then the download button for "/NewFolder/file.odt" will be visible to "user2"
|