From ef7d631fe70f3f4e9b49c2b1211fcd29b324789d Mon Sep 17 00:00:00 2001 From: Lacustat Date: Tue, 27 Oct 2026 11:15:50 +0100 Subject: [PATCH] 0.1.139: Dev und Rechte scharf, Eigentuemer und Moderatoren eingetragen Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9 --- CodexOwners.lua | 17 +++++++++++++---- CodexTrust.lua | 10 ++++++++++ Freewood-OctoWoW-Codex.toc | 2 +- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/CodexOwners.lua b/CodexOwners.lua index ee793e7..a6354ab 100644 --- a/CodexOwners.lua +++ b/CodexOwners.lua @@ -16,8 +16,17 @@ if not NS then end NS.Owners = { - "Yuto-ClassicBetaPvP2", - "Aroki Steel", - "Lujinja Steel", - "Lujinja-ClassicBetaPvE", + "Fwfreewood", + "Freewood", + "Fwaroki", +} + +-- Fest eingetragene Moderatoren (duerfen Namen aendern, Datensaetze markieren, Verbindungen und Ortspunkte weitergeben). +-- Gilt zusaetzlich zur Liste, die ein Eigentuemer ueber das Modul Rechte veroeffentlicht. Eine Sperre (blocked) dort geht vor. +NS.Moderators = { + "Pinkytwinky", + "Lacustat", + "Dipps", + "Arokisteel", + "Windsteel", } diff --git a/CodexTrust.lua b/CodexTrust.lua index e8c73cf..e2b7ce8 100644 --- a/CodexTrust.lua +++ b/CodexTrust.lua @@ -132,6 +132,15 @@ end -- Abfragen ------------------------------------------------------------------------ +local function ModeratorKeys() + local set = {} + for _, n in ipairs(NS.Moderators or {}) do + local k = Trust.EntryKey(n) + if k then set[k] = true end + end + return set +end + function Trust.IsOwner(name) local k = Trust.Key(name) return k ~= nil and OwnerKeys()[k] == true @@ -148,6 +157,7 @@ function Trust.RoleOf(name) local entry = Data().list[k] if entry and entry.role == "blocked" then return "blocked" end if OwnerKeys()[k] then return "owner" end + if ModeratorKeys()[k] then return "moderator" end return entry and entry.role or nil end diff --git a/Freewood-OctoWoW-Codex.toc b/Freewood-OctoWoW-Codex.toc index e473141..678d15d 100644 --- a/Freewood-OctoWoW-Codex.toc +++ b/Freewood-OctoWoW-Codex.toc @@ -3,7 +3,7 @@ ## Notes: Learns quests, creatures and drops while you play: who gives and takes a quest, rewards, objectives, drop chances. ## Notes-deDE: Lernt beim Spielen Quests, Kreaturen und Beute: wer eine Quest vergibt und annimmt, Belohnungen, Ziele, Drop-Chancen. ## Author: Lacustat -## Version: 0.1.138 +## Version: 0.1.139 ## Dependencies: Freewood-OctoWoW-Core ## OptionalDeps: Freewood-OctoWoW-CodexData, Freewood-OctoWoW-ForeverData