Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
access: Fix ACCESS_FULL and handle --noacl also in access_get_by_addr()
  • Loading branch information
perexg committed Aug 14, 2014
1 parent 1579757 commit c7d2595
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/access.c
Expand Up @@ -416,6 +416,11 @@ access_get_by_addr(struct sockaddr *src)
access_t *a = calloc(1, sizeof(*a));
access_entry_t *ae;

if(access_noacl) {
a->aa_rights = ACCESS_FULL;
return a;
}

TAILQ_FOREACH(ae, &access_entries, ae_link) {

if(!ae->ae_enabled)
Expand Down
3 changes: 2 additions & 1 deletion src/access.h
Expand Up @@ -88,7 +88,8 @@ typedef struct access {
#define ACCESS_ADMIN (1<<6)

#define ACCESS_FULL \
(ACCESS_STREAMING | ACCESS_WEB_INTERFACE | ACCESS_RECORDER | ACCESS_ADMIN)
(ACCESS_STREAMING | ACCESS_ADVANCED_STREAMING | \
ACCESS_WEB_INTERFACE | ACCESS_RECORDER | ACCESS_ADMIN)

/**
* Create a new ticket for the requested resource and generate a id for it
Expand Down

0 comments on commit c7d2595

Please sign in to comment.