diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php index 342529ead..5ce6ecd96 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php @@ -20,6 +20,7 @@ function show_user(){ $result['gender'] = $info['Gender']; $ticket_user = Ticket_User::constr_ExternId($result['target_id']); + $result['userPermission'] = $ticket_user->getPermission(); $ticketlist = Ticket::getTicketsOf($ticket_user->getTUserId()); $result['ticketlist'] = Gui_Elements::make_table($ticketlist, Array("getTId","getTimestamp","getTitle","getStatus","getStatusText","getStatusText","getCategoryName"), Array("tId","timestamp","title","status","statustext","statusText","category")); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_reply.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_reply.tpl index 4813f840c..eafad703c 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_reply.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_reply.tpl @@ -16,12 +16,11 @@
{$reply_timestamp} {$author_permission} {if $author_permission eq '1'} - - {else if $author_permission eq '2'} - [CSR] + {if isset($isMod) and $isMod eq "TRUE"} {$authorName}{else} {$authorName} {/if}
+ {else if $author_permission gt '1'} + {if isset($isMod) and $isMod eq "TRUE"} {$authorName}{else} {$authorName} {/if} {/if} - {if isset($isMod) and $isMod eq "TRUE"} {$authorName}{else}{$authorName} {/if} - +{$reply_content}
{$reply.timestamp} {if $reply.permission eq '1'} - + {if isset($isMod) and $isMod eq "TRUE"} {$reply.author}{else} {$reply.author} {/if}
{else if $reply.permission gt '1'} - [CSR] + {if isset($isMod) and $isMod eq "TRUE"} {$reply.author}{else} {$reply.author} {/if} {/if} - {if isset($isMod) and $isMod eq "TRUE"} {$reply.author}{else}{$reply.author} {/if} -{$reply.replyContent}