summaryrefslogtreecommitdiffstats
path: root/build/integration/features/sharing-v1-part2.feature
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/sharing-v1-part2.feature')
-rw-r--r--build/integration/features/sharing-v1-part2.feature22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1-part2.feature b/build/integration/features/sharing-v1-part2.feature
index e90d44d1a61..f6532ea564d 100644
--- a/build/integration/features/sharing-v1-part2.feature
+++ b/build/integration/features/sharing-v1-part2.feature
@@ -417,6 +417,28 @@ Feature: sharing
| permissions | 31 |
Then the OCS status code should be "404"
+ Scenario: Do not allow sub reshare to exceed permissions
+ Given user "user0" exists
+ And user "user1" exists
+ And user "user2" exists
+ And user "user0" created a folder "/TMP"
+ And user "user0" created a folder "/TMP/SUB"
+ And As an "user0"
+ And creating a share with
+ | path | /TMP |
+ | shareType | 0 |
+ | shareWith | user1 |
+ | permissions | 21 |
+ And As an "user1"
+ And creating a share with
+ | path | /TMP/SUB |
+ | shareType | 0 |
+ | shareWith | user2 |
+ | permissions | 21 |
+ When Updating last share with
+ | permissions | 31 |
+ Then the OCS status code should be "404"
+
Scenario: Only allow 1 link share per file/folder
Given user "user0" exists
And As an "user0"