Comments (7)
Issue-Label Bot is automatically applying the label feature_request
to this issue, with a confidence of 0.62. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
from bot.
Hi, if this is still an issue I can give this a go!
from bot.
Hello! I want to contribute, what should I do?
from bot.
If you think you know how to do this well you can submit a PR with your solution. The bot still needs to set channel permissions, but not completely delete the permissions that would otherwise be inherited from the category channel.
from bot.
Thanks :)
from bot.
Better explanation in PR #58 comment:
That's not quite what I meant... although to be fair I didn't explain it brilliantly before. The bot still needs to ensure that those overwrites are set but whilst respecting other permissions from the parent category. So the channel should be created with the same overwrites as the category, which should allow the bot and staff, and disallow everyone, but the new channel should be edited after creation to add allow permissions for the ticket creator. If the category doesn't already have the required overwrites it should be modified to set them, but without removing existing overwrites for other permissions/members/roles.
Example:
* Category allows admins and staff and disallows everyone * Before the ticket is created the bot checks the category permissions. The bot doesn't have read and write permissions so updates the category * The bot creates the new channel without any overwrites, so it inherits the permissions from the category * The bot edits the new channel so the ticket creator can read and write (and read history, upload files etc)
Also, any change made to ticket creation in
src/commands/new.js
also needs to be updated insrc/events/messageReactionAdd.js
.
from bot.
soon ™️
from bot.
Related Issues (20)
- Separate internal and external origins for SvelteKit HOT 1
- [BUG] Ticket members
- [BUG] SyntaxError: Unexpected token < in JSON HOT 1
- [BUG] TypeError [InvalidType]: Supplied parameter is not a User nor a Role
- Web Page not working and showing a error HOT 2
- [BUG] Error: EACCES: permission denied, mkdir 'user/uploads' on docker swarm HOT 1
- Add Umeaboy as a contributor HOT 5
- [BUG] Invalid request body HOT 3
- [BUG] Working hours: `Cannot read properties of undefined (reading '0')` HOT 1
- [BUG] Time periods stored as milliseconds can be too large for the field type
- [BUG] Moving a ticket into a newly created category results in an error HOT 3
- Use custom status HOT 1
- Gateway sharding HOT 1
- Optional `opening_message` text
- Support Bot HOT 3
- Move some general settings to categories
- Editing categories resets command permission overrides
- `/new` with invalid `references` value causes unexpected error
- [BUG] Opening message preview can break the category settings page
- Add padding to ticket number HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bot.