Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mdhelp: add passwd and ipblocking classes
  • Loading branch information
perexg committed Apr 6, 2016
1 parent 81083b9 commit 2438985
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/class/ipblocking.md
@@ -0,0 +1,4 @@
##Configuration - IP Blocking Records

This tab allows to configure blocked IP ranges. Users within these ranges
are not allowed to login (use any Tvheadend service).
6 changes: 6 additions & 0 deletions docs/class/passwd.md
@@ -0,0 +1,6 @@
##Configuration - Passwords

This tab is the second part of Tvheadend's access control mechanism. It is
where you set and maintain all user passwords (e.g. for streaming or DVR access).

One user name might have multiple passwords.
7 changes: 7 additions & 0 deletions src/access.c
Expand Up @@ -1897,11 +1897,14 @@ passwd_entry_class_password2_set(void *o, const void *v)
return 0;
}

extern const char *tvh_doc_passwd_class[];

const idclass_t passwd_entry_class = {
.ic_class = "passwd",
.ic_caption = N_("Passwords"),
.ic_event = "passwd",
.ic_perm_def = ACCESS_ADMIN,
.ic_doc = tvh_doc_passwd_class,
.ic_save = passwd_entry_class_save,
.ic_get_title = passwd_entry_class_get_title,
.ic_delete = passwd_entry_class_delete,
Expand Down Expand Up @@ -2046,11 +2049,15 @@ ipblock_entry_class_prefix_get(void *o)
return &ret;
}

extern const char *tvh_doc_ipblocking_class[];


const idclass_t ipblock_entry_class = {
.ic_class = "ipblocking",
.ic_caption = N_("IP blocking"),
.ic_event = "ipblocking",
.ic_perm_def = ACCESS_ADMIN,
.ic_doc = tvh_doc_ipblocking_class,
.ic_save = ipblock_entry_class_save,
.ic_get_title = ipblock_entry_class_get_title,
.ic_delete = ipblock_entry_class_delete,
Expand Down
2 changes: 1 addition & 1 deletion src/webui/static/app/config.js
Expand Up @@ -41,7 +41,7 @@ tvheadend.baseconf = function(panel, index) {
if (l !== tvheadend.uilevel)
reload = 1;
}
var n = data['theme'];
var n = data['theme_ui'];
if (n !== tvheadend.theme)
reload = 1;
var n = data['uilevel_nochange'] ? true : false;
Expand Down

0 comments on commit 2438985

Please sign in to comment.