aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editlayout.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-12 18:04:00 -0800
committerfriendica <info@friendica.com>2014-11-12 18:04:00 -0800
commita2cf1900c8383ca18507904329a8723fce1ae806 (patch)
treee16f76d892779132dc92b4c5a9ee9316b8628578 /mod/editlayout.php
parent634475164ea3bfe6a430623ee9bc0fa4cc2bd055 (diff)
downloadvolse-hubzilla-a2cf1900c8383ca18507904329a8723fce1ae806.tar.gz
volse-hubzilla-a2cf1900c8383ca18507904329a8723fce1ae806.tar.bz2
volse-hubzilla-a2cf1900c8383ca18507904329a8723fce1ae806.zip
this should make all the 'sys' webpage design tools useable by the admin
Diffstat (limited to 'mod/editlayout.php')
-rw-r--r--mod/editlayout.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/mod/editlayout.php b/mod/editlayout.php
index 27e6ef410..94e2e628c 100644
--- a/mod/editlayout.php
+++ b/mod/editlayout.php
@@ -60,14 +60,11 @@ function editlayout_content(&$a) {
$ob_hash = (($observer) ? $observer['xchan_hash'] : '');
- $perms = get_all_perms($owner,$ob_hash);
-
- if(! $perms['write_pages']) {
+ if(! perm_is_allowed($owner,$ob_hash,'write_pages')) {
notice( t('Permission denied.') . EOL);
return;
}
-
$is_owner = (($uid && $uid == $owner) ? true : false);
$o = '';