don't show app editing options to non-authenticated folks
This commit is contained in:
parent
f5d3a724d2
commit
17e575e1eb
@ -78,6 +78,7 @@ function widget_appselect($arr) {
|
|||||||
return replace_macros(get_markup_template('app_select.tpl'),array(
|
return replace_macros(get_markup_template('app_select.tpl'),array(
|
||||||
'$title' => t('Apps'),
|
'$title' => t('Apps'),
|
||||||
'$system' => t('System'),
|
'$system' => t('System'),
|
||||||
|
'$authed' => ((local_user()) ? true : false),
|
||||||
'$personal' => t('Personal'),
|
'$personal' => t('Personal'),
|
||||||
'$new' => t('Create Personal App'),
|
'$new' => t('Create Personal App'),
|
||||||
'$edit' => t('Edit Personal App')
|
'$edit' => t('Edit Personal App')
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{if $authed}}
|
||||||
<div class="widget">
|
<div class="widget">
|
||||||
<h3>{{$title}}</h3>
|
<h3>{{$title}}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
@ -8,4 +9,5 @@
|
|||||||
<li><a href="apps/personal/edit">{{$edit}}</a></li>
|
<li><a href="apps/personal/edit">{{$edit}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user