From e41ba05c0a9002b30e9e2475f56fd207e856a9f8 Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Mon, 22 Feb 2016 22:26:15 +0100 Subject: Allow individual settings to be locked down This allows a site admin who pregenerates configs to mark certain settings as untouchable, ensuring that users cannot mess up their settings too badly. --- set.h | 1 + 1 file changed, 1 insertion(+) (limited to 'set.h') diff --git a/set.h b/set.h index 3735d797..f0a51136 100644 --- a/set.h +++ b/set.h @@ -48,6 +48,7 @@ typedef enum { SET_HIDDEN = 0x0200, /* Don't show up in setting lists. Mostly for internal storage. */ SET_PASSWORD = 0x0400, /* Value shows up in settings list as "********". */ SET_HIDDEN_DEFAULT = 0x0800, /* Hide unless changed from default. */ + SET_LOCKED = 0x1000 /* Setting is locked, don't allow changing it */ } set_flags_t; typedef struct set { -- cgit v1.2.3