Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answers can be edited by other users #508

Open
1 task done
jxshuaa opened this issue Dec 26, 2023 · 1 comment
Open
1 task done

Answers can be edited by other users #508

jxshuaa opened this issue Dec 26, 2023 · 1 comment

Comments

@jxshuaa
Copy link

jxshuaa commented Dec 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have recently started using discord-tickets self-hosted bot and I came across when I opened a ticket my friend could edit my answers to the questions

image

This is a preview of the tickets in my Discord Account where I opened the issue. When I go to a alt account, I can edit the users answers.

image

I think this is a bug since sometimes people can have staff that don't follow the rules and they can change their users answers and loosing the original ones.

Expected Behavior

I would have expected an error that only the user that tried editing it can see. And it wouldn't allow ANYONE to change the text except for the user that created the ticket, neither that people are added to the ticket can edit it as well so I think we need this fixed. ASAP.

Steps To Reproduce

  1. Have 2 discord accounts and a server with a selfhosted bot (or public bot if it works).
  2. Next, open a ticket in one Discord Account, ( MUST HAVE QUESTIONS SET UP IN THE CATEGORIES)
  3. Next, on the other Discord Account navigate to the ticket
  4. Next, try to edit the user's answers.
  5. You will successfully changed the users answers.
    image

Environment

- OS: Pterodactyl ( Ubuntu 20.04 ) 
- Node: v18
- NPM: latest
- Bot: latest

Anything else?

No response

@jxshuaa jxshuaa added the bug Something isn't working label Dec 26, 2023
@eartharoid eartharoid changed the title [BUG] Small issue inside the tickets. [BUG] Answers can be edited by other users Jan 21, 2024
@eartharoid
Copy link
Member

image

https://discord.com/channels/451745464480432129/893207320878776400/1193637021319712848

I don't think this is a bug but I'll keep it open and consider making it configurable.

@eartharoid eartharoid removed the bug Something isn't working label Jan 21, 2024
@eartharoid eartharoid changed the title [BUG] Answers can be edited by other users Answers can be edited by other users Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants