aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-24 14:41:18 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-24 14:41:18 -0800
commite98fcf68f03361329b04ddff2ae358e49329cdec (patch)
tree8d5245b73fa150bdd7b754252912a2731cab652c /mod/item.php
parent36717e5f32a154582a2069ebc60e4fa256bb9f90 (diff)
downloadvolse-hubzilla-e98fcf68f03361329b04ddff2ae358e49329cdec.tar.gz
volse-hubzilla-e98fcf68f03361329b04ddff2ae358e49329cdec.tar.bz2
volse-hubzilla-e98fcf68f03361329b04ddff2ae358e49329cdec.zip
issue #235
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index b3ef57529..bda33f4b3 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -210,7 +210,7 @@ function item_post(&$a) {
}
}
else {
- if(! perm_is_allowed($profile_uid,$observer['xchan_hash'],'post_wall')) {
+ if(! perm_is_allowed($profile_uid,$observer['xchan_hash'],($webpage) ? 'write_pages' : 'post_wall')) {
notice( t('Permission denied.') . EOL) ;
if(x($_REQUEST,'return'))
goaway($a->get_baseurl() . "/" . $return_path );