Skip to content

Prevent "Background"-Folder creation for guest users #16471

@SystemKeeper

Description

@SystemKeeper

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Be a guest user (from the guests app)
  2. Open the media settings in talk

While the upload button is hidden, we still try to create the Backgrounds folder:

Image

(not totally sure why the Talk/ part is missing, I've seen the error for the correct path for guest users)

try {
// Create the backgrounds folder if it doesn't exist
const client = getDavClient()
if (await client.exists(absoluteBackgroundsFolderPath) === false) {
await client.createDirectory(absoluteBackgroundsFolderPath)
}
} catch (error) {
console.debug(error)
}

If we know we cannot upload anything, we should not try to create the folder.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions