Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ACL: fix the default rights and rights updating
  • Loading branch information
perexg committed Aug 17, 2014
1 parent 91f3b2c commit 6883f39
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/access.c
Expand Up @@ -667,6 +667,7 @@ access_entry_reindex(void)
static void
access_entry_class_save(idnode_t *self)
{
access_entry_update_rights((access_entry_t *)self);
access_entry_save((access_entry_t *)self);
}

Expand Down Expand Up @@ -957,8 +958,13 @@ access_init(int createdefault, int noacl)

ae->ae_comment = strdup("Default access entry");

ae->ae_enabled = 1;
ae->ae_rights = ACCESS_FULL;
ae->ae_enabled = 1;
ae->ae_streaming = 1;
ae->ae_adv_streaming = 1;
ae->ae_dvr = 1;
ae->ae_webui = 1;
ae->ae_admin = 1;
access_entry_update_rights(ae);

TAILQ_INIT(&ae->ae_ipmasks);

Expand Down

0 comments on commit 6883f39

Please sign in to comment.