feat(admin,api): restrict community creation on self-hosted (#3055)

This commit is contained in:
omster authored and GitHub committed 2026-09-30 16:32:45 +02:00
1 parent ab4069ed0e
commit ca719e7b5e
95 files changed
+508 -13

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
use crate::templates::components::tooltip::{Hint, HintLink};
pub fn limit_key_hint(key: &str) -> Option<Hint<'static>> {
match key {
"feature_guild_create" => Some(Hint {
name: Some("Community Creation Access"),
body: "Admins with the wildcard ACL can always create communities.",
link: Some(HintLink::new(
"/instance-config#community-creation",
"Community creation policy",
)),
}),
_ => None,
}
}