Skip to content

Embed Links and Attach File Permissions Not Functional #1595

@Robocat999

Description

@Robocat999

Describe the bug
Denying the permissions Embed Links and Attach Files do not correctly prevent these actions. Regardless of if a channel specifically denies the permissions, or a role has the permission denied entirely, users can always embed links and attach files. Permissions are being reported together since they both must function to control a user's ability to post images.

To Reproduce
Steps to reproduce the behavior:

  1. Create a channel.
  2. Deny the permissions Embed Links and Attach Files in any way (by user, by role, or by channel)
  3. Post a link.
  4. Attach a file.

Expected behavior
Users who can not embed links should not be have links embed.
Users who can not attach files should not have their files attached.

Env and Software info
Encountered on the live instance of spacebar.chat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions