{{getCollectionByCategory CollectionID=3 ColumnID=1 Value=$smarty.session.UserID OrderColumn=1 var=Groups}} 
{{assign var=generalUser value=0}} 
{{assign var=moderatorUser value=0}} 
{{foreach from=$Groups item=v key=k}} 
{{if $v.Collection_3_2 eq 1 or $v.Collection_3_2 eq 5 }} {{assign var=moderatorUser value=1}} {{/if}} 
{{if $v.Collection_3_2 eq 3 or $v.Collection_3_2 eq 4 }} {{assign var=generalUser value=1}} {{/if}} 
{{/foreach}}

{{getCollectionByCategory CollectionID=62 OrderColumn=1 OrderWay=1 var=Comments ColumnID='ID' Value=$smarty.get.comment}}
{{assign var=Comment value=$Comments[0]}}

{{getCollectionByCategory CollectionID=1 OrderColumn=1 OrderWay=1 var=User ColumnID='ID' Value=$Comment.Collection_62_3}} 
{{assign var=UData value=$User[0]}} 
{{if $smarty.session.UserID eq $UData.Collection_1_ID or $moderatorUser eq 1}}

<div id="inner_content">
<h1>Edit Comment</h1>
<div id="blog_article">
<div id="smarty_plugin">{{ViewCollection CollectionID=62 TemplateID=10 mode='Edit' rowid=$smarty.get.comment}}</div>
</div>
</div>
<div id="menu_right">
<div id="smarty_plugin">{{getcontent id=300}}</div>
</div>
{{else}}
{{urlredirect page='/blog.html'}}
{{/if}}