Skip to content

Commit

Permalink
Use SHOW permissions when listing address books.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 26, 2014
1 parent 4900677 commit eafb95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turba/lib/Application.php
Expand Up @@ -243,7 +243,7 @@ public function sidebar($sidebar)
),
);
$shares = array();
foreach (Turba::listShares() as $id => $abook) {
foreach (Turba::listShares(false, Horde_Perms::SHOW) as $id => $abook) {
$row = array(
'selected' => $id == Turba::$source,
'url' => $url->add('source', $id),
Expand Down Expand Up @@ -275,7 +275,7 @@ public function sidebar($sidebar)
'collapsed' => true,
),
);
foreach (Turba::getAddressBooks(Horde_Perms::READ) as $id => $abook) {
foreach (Turba::getAddressBooks(Horde_Perms::SHOW) as $id => $abook) {
if (isset($shares[$id])) {
continue;
}
Expand Down

0 comments on commit eafb95e

Please sign in to comment.