"Can edit my webpages" permissions

This commit is contained in:
Thomas Willingham
2013-08-01 18:40:50 +01:00
parent 2a848c0d37
commit f3791d48b0
3 changed files with 58 additions and 15 deletions

View File

@@ -60,10 +60,12 @@ $r = q("select * from item_id where uid = %d and service = 'WEBPAGE'",
}
//Build the base URL for edit links
$url = z_root() . "/editwebpage/" . $a->profile['channel_address'];
// 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(
'$editlink' => t('Edit'),
'$baseurl' => $url,
'$edit' => t('Edit'),
'$pages' => $pages,
'$channel' => $a->profile['channel_address'],
'$view' => t('View'),