minor fixes to apps (don't show notes if not logged in) and photos (tag delete link is leaking to unauthorised users)
This commit is contained in:
parent
df8ac668b8
commit
dea721a3f8
14
mod/apps.php
14
mod/apps.php
|
@ -5,10 +5,20 @@ function apps_content(&$a) {
|
|||
|
||||
$o .= '<h3>' . t('Applications') . '</h3>';
|
||||
|
||||
$o .= '<div class="app-title"><a href="notes">' . t('Private Notes') . '</a></div>';
|
||||
$apps = false;
|
||||
|
||||
if($a->apps)
|
||||
if(local_user()) {
|
||||
$apps = true;
|
||||
$o .= '<div class="app-title"><a href="notes">' . t('Private Notes') . '</a></div>';
|
||||
}
|
||||
|
||||
if($a->apps) {
|
||||
$apps = true;
|
||||
$o .= $a->apps;
|
||||
}
|
||||
|
||||
if(! $apps)
|
||||
notice( t('No installed applications.') . EOL);
|
||||
|
||||
return $o;
|
||||
|
||||
|
|
|
@ -1106,10 +1106,11 @@ function photos_content(&$a) {
|
|||
$tag_str .= bbcode($t);
|
||||
}
|
||||
$tags = array(t('Tags: '), $tag_str);
|
||||
if($cmd === 'edit')
|
||||
if($cmd === 'edit') {
|
||||
$tags[] = $a->get_baseurl() . '/tagrm/' . $link_item['id'];
|
||||
$tags[] = t('[Remove any tag]');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$edit = Null;
|
||||
|
|
Loading…
Reference in a new issue