]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
wizard: change comments for wizard ACL entries
authorJaroslav Kysela <perex@perex.cz>
Sun, 23 Apr 2017 14:34:50 +0000 (16:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 24 Apr 2017 14:55:36 +0000 (16:55 +0200)
src/access.h
src/wizard.c

index 95f0a620f1ae2dcebe7f5248d704f199f92546ee..bd15f3579b5a85125f1e82cb5c81c0c4480d773d 100644 (file)
@@ -23,6 +23,7 @@
 #include "htsmsg.h"
 
 #define ACCESS_DEFAULT_COMMENT "Default access entry"
+#define ACCESS_WIZARD_COMMENT "Wizard access entry"
 
 struct profile;
 struct dvr_config;
index af5e56bc7d676135bf4c4e4fa6f739cd6b81df94..d203b3722070a7be47e782c3ab10c42013137532 100644 (file)
@@ -323,6 +323,7 @@ static void login_changed(idnode_t *in)
   htsmsg_add_msg(conf, "dvr", list);
   htsmsg_add_bool(conf, "webui", 1);
   htsmsg_add_bool(conf, "admin", 1);
+  htsmsg_add_str(conf, "comment", ACCESS_WIZARD_COMMENT);
   ae = access_entry_create(NULL, conf);
   if (ae) {
     ae->ae_wizard = 1;
@@ -358,6 +359,7 @@ static void login_changed(idnode_t *in)
     htsmsg_add_str(list, NULL, "htsp");
     htsmsg_add_msg(conf, "dvr", list);
     htsmsg_add_bool(conf, "webui", 1);
+    htsmsg_add_str(conf, "comment", ACCESS_WIZARD_COMMENT);
     ae = access_entry_create(NULL, conf);
     if (ae) {
       ae->ae_wizard = 1;