Skip to content

Commit

Permalink
Don't show subscribe actions if IMAP subscriptions are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 12, 2013
1 parent 7d827ef commit 40eddcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions imp/lib/Dynamic/Mailbox.php
Expand Up @@ -279,6 +279,14 @@ protected function _addMailboxVars()
);
}

$subscribe = $prefs->getValue('subscribe');
if (!$subscribe) {
unset(
$context['ctx_folderopts']['sub'],
$context['ctx_folderopts']['unsub']
);
}

/* Message context menu. */
$context['ctx_message'] = array(
'_sub1' => array(
Expand Down

0 comments on commit 40eddcf

Please sign in to comment.