aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editwebpage.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-19 17:53:52 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-19 17:53:52 -0700
commitec00c5b18a1efea64517b18fa12bb9df6f0b95f7 (patch)
tree8a0bc1c5d6e920bbc32b0deaa25f7d3be677a2b3 /mod/editwebpage.php
parented3d9d1f80773417b0fba491ed762b90be340863 (diff)
downloadvolse-hubzilla-ec00c5b18a1efea64517b18fa12bb9df6f0b95f7.tar.gz
volse-hubzilla-ec00c5b18a1efea64517b18fa12bb9df6f0b95f7.tar.bz2
volse-hubzilla-ec00c5b18a1efea64517b18fa12bb9df6f0b95f7.zip
the view_photos and post_photos permissions are redundant and are now mapped to view_storage and write_storage
Diffstat (limited to 'mod/editwebpage.php')
-rw-r--r--mod/editwebpage.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index 3b0b543a6..974e8cc38 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -165,15 +165,12 @@ function editwebpage_content(&$a) {
$rp = 'webpages/' . $which;
- logger('canwrite: ' . (perm_is_allowed($owner, get_observer_hash(), 'post_photos') || perm_is_allowed($owner, get_observer_hash(), 'write_storage')));
-
$editor = replace_macros($tpl,array(
'$return_path' => $rp,
'$webpage' => ITEM_TYPE_WEBPAGE,
'$placeholdpagetitle' => t('Page link title'),
'$pagetitle' => $page_title,
- '$writefiles' => (perm_is_allowed($owner, get_observer_hash(), 'post_photos') || perm_is_allowed($owner, get_observer_hash(), 'write_storage')),
-
+ '$writefiles' => perm_is_allowed($owner, get_observer_hash(), 'write_storage'),
'$action' => 'item',
'$share' => t('Edit'),
'$bold' => t('Bold'),