Skip to content

Add 3 new factoid properties#859

Merged
ajax146 merged 5 commits intomainfrom
FactoidProperties
Feb 12, 2024
Merged

Add 3 new factoid properties#859
ajax146 merged 5 commits intomainfrom
FactoidProperties

Conversation

@ajax146
Copy link
Contributor

@ajax146 ajax146 commented Feb 9, 2024

This adds three new factoid properties:
Disabled
Protected
Restricted

Disabled completely disables a factoid from being called, but keeps it in the database
Protected prevents all edit attempts on a factoid until it is first unprotected
Restricted only allows factoids to be called from a predefined list of channels

This also moves those 3 properties, and hidden, to be only controllable by a factoids admins set of roles

This changes the way the factoids permissions checks work, and the way modifying factoids work to make the code a bit cleaner and easier to read.

Additionally, .factoid info now shows a "properties" tab that will show the 4 special factoid properties, replacing the existing hidden tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants