Skip to content

Commit

Permalink
Hide delete button if no permission
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Oct 25, 2022
1 parent 56d2484 commit 2105017
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lhc_web/design/defaulttheme/tpl/lhchat/lists.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@

<div class="btn-group" role="group" aria-label="...">
<input type="submit" name="doClose" class="btn btn-warning" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Close selected');?>" />
<?php if (erLhcoreClassUser::instance()->hasAccessTo('lhchat','deleteglobalchat') || erLhcoreClassUser::instance()->hasAccessTo('lhchat','deletechat')) : ?>
<input type="submit" name="doDelete" class="btn btn-danger" onclick="return confirm(confLH.transLation.delete_confirm)" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel','Delete selected');?>" />
<?php endif; ?>
</div>

</form>
Expand Down

0 comments on commit 2105017

Please sign in to comment.