-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(attachments): Don't allow selecting shared folders as attachment …
…folder Signed-off-by: Joas Schilling <coding@schilljs.com>
- Loading branch information
1 parent
0c7ed67
commit 14d8bac
Showing
8 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Feature: sharing-4/settings | ||
|
||
Background: | ||
Given user "participant1" exists | ||
Given user "participant2" exists | ||
|
||
Scenario: Do not allow setting a shared folder as attachment_folder | ||
Given user "participant1" creates folder "/test" | ||
When user "participant1" sets setting "attachment_folder" to "/test" with 200 (v1) | ||
Then user "participant1" has capability "spreed=>config=>attachments=>folder" set to "/test" | ||
Given user "participant2" creates folder "/test-participant2" | ||
Given user "participant2" shares "/test-participant2" with user "participant1" with OCS 100 | ||
When user "participant1" sets setting "attachment_folder" to "/test-participant2" with 400 (v1) | ||
Then user "participant1" has capability "spreed=>config=>attachments=>folder" set to "/test" |