Режим разработки: служебные разделы, робот НРД и имитации — только по признаку из ключа лицензии

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
zuevav
2026-09-17 18:15:18 +03:00
parent 698956092b
commit 627dbca6af
22 changed files with 157 additions and 38 deletions
+3
View File
@@ -37,6 +37,9 @@ func advancedUnlocked(r *http.Request) bool {
if globalRC != nil && moduleAllowed(globalRC, "quik-mnp") {
return true
}
if !devMode(globalRC) { // пароль на модули — инструмент разработчиков
return false
}
c, err := r.Cookie(advancedCookie)
if err != nil {
return false