{{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=ID OrderWay=1 var=Comments ColumnID='ID' Value=$smarty.get.comment}}
{{assign var=CommentData value=$Comments[0]}}

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

{{CollectionDeleteRow CollectionID=62 RowID=$smarty.get.comment}}
{{urlredirect page='/blog-article.html?article='|concat:$smarty.get.article}}
{{else}}
{{urlredirect page='/blog-article.html?article='|concat:$smarty.get.article}}
{{/if}}