diff options
author | Thomas Willingham <beardyunixer@beardyunixer.com> | 2014-10-11 16:18:15 +0100 |
---|---|---|
committer | Thomas Willingham <beardyunixer@beardyunixer.com> | 2014-10-11 16:18:15 +0100 |
commit | d46fd7917f248c105ca44d2d15878d79b358fdfd (patch) | |
tree | 65551ada5ef26dce5cf07d91be4dd02da7e1d91b /mod/webpages.php | |
parent | d196e71962f8e9d6ec76250340f2252ef97ff6ce (diff) | |
download | volse-hubzilla-d46fd7917f248c105ca44d2d15878d79b358fdfd.tar.gz volse-hubzilla-d46fd7917f248c105ca44d2d15878d79b358fdfd.tar.bz2 volse-hubzilla-d46fd7917f248c105ca44d2d15878d79b358fdfd.zip |
Fix webpages. Sycning between too many codebases...
Diffstat (limited to 'mod/webpages.php')
-rw-r--r-- | mod/webpages.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/webpages.php b/mod/webpages.php index 6fee8b414..f1be648ff 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -35,6 +35,8 @@ function webpages_content(&$a) { $ob_hash = (($observer) ? $observer['xchan_hash'] : ''); $perms = get_all_perms($owner,$ob_hash); + if ($which == 'sys' && is_site_admin()) + $perms['write_pages'] = 1; if(! $perms['write_pages']) { notice( t('Permission denied.') . EOL); @@ -126,7 +128,7 @@ function webpages_content(&$a) { $url = z_root() . "/editwebpage/" . $which; // This isn't pretty, but it works. Until I figure out what to do with the UI, it's Good Enough(TM). return $o . replace_macros(get_markup_template("webpagelist.tpl"), array( - '$listtitle = t('Webpages'), + '$listtitle' => t('Webpages'), '$baseurl' => $url, '$edit' => t('Edit'), '$pages' => $pages, |