aboutsummaryrefslogtreecommitdiffstats
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
parent36717e5f32a154582a2069ebc60e4fa256bb9f90 (diff)
downloadvolse-hubzilla-e98fcf68f03361329b04ddff2ae358e49329cdec.tar.gz
volse-hubzilla-e98fcf68f03361329b04ddff2ae358e49329cdec.tar.bz2
volse-hubzilla-e98fcf68f03361329b04ddff2ae358e49329cdec.zip
issue #235
-rw-r--r--mod/item.php2
-rw-r--r--version.inc2
2 files changed, 2 insertions, 2 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 );
diff --git a/version.inc b/version.inc
index 433f3fa89..6ae9d3269 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-12-22.1254
+2015-12-24.1256