this should make all the 'sys' webpage design tools useable by the admin

This commit is contained in:
friendica
2014-11-12 18:04:00 -08:00
parent 634475164e
commit a2cf1900c8
4 changed files with 212 additions and 157 deletions

View File

@@ -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 = '';