Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
channel: allow access to removed channels for users with full rights
  • Loading branch information
perexg committed Apr 11, 2016
1 parent 57f8bca commit 17be93d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/channels.c
Expand Up @@ -596,9 +596,16 @@ channel_access(channel_t *ch, access_t *a, int disabled)
{
char ubuf[UUID_HEX_SIZE];

if (!ch || !a)
if (!a)
return 0;

if (!ch) {
/* If user has full rights, allow access to removed chanels */
if (a->aa_chrange == NULL && a->aa_chtags == NULL)
return 1;
return 0;
}

if (!disabled && !ch->ch_enabled)
return 0;

Expand Down

0 comments on commit 17be93d

Please sign in to comment.