Giter Club home page Giter Club logo

matrixjoinlink's Introduction

matrixjoinlink's People

Contributors

actions-user avatar dependabot[bot] avatar dfuchss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

batuhanson

matrixjoinlink's Issues

Feature request: Restrict (un)link to users with invite powers

Current behavior

Any permitted user of the bot can manage JoinLinks for any room the bot is present in. Neither the users presence in the target room nor any permissions for the user is required.
This is problematic in the following scenario:

  1. Create a private room, invite the JoinLink bot and give it the appropriate permissions.
  2. Switch to a second user who (is not in the room|does not have a powerlevel sufficient to send invite others) but in the allowed user for the JoinLink bot.
  3. (2nd User) Send a !join link <room-id> MyTestLink command to the JoinLink bot
  4. A invite link is generated/the existing one is sent to the user.
  5. The user, previously not invited, now can join the room in question or invite others when they should not be able to.

In the same schema, any user is able to unlink any arbitrary room without the need for them to be present in the affected room.

Proposed behavior

It should be verified whether the user (un)linking the room is

  1. Member of the room1 AND
  2. Has a powerlevel that's sufficient for inviting users.

Motivation

I'd like to offer the functionality provided by this bot to all users on the server (Thank you for building it!). However, I do not feel comfortable with doing so when it effectively allows anyone to join into arbitrary rooms one was not supposed to be invited to.

Footnotes

  1. In the case of unlinking, I see a case for bot-administrators to be able to unlink arbitrary rooms. โ†ฉ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.