diff options
Diffstat (limited to 'mod/editlayout.php')
-rw-r--r-- | mod/editlayout.php | 5 |
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 = ''; |