mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
constraint chat functionalities to all roles, excep and
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<hr class="container-m-nx m-0" />
|
||||
<div class="sidebar-body">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
<div class="mb-0 px-4 pt-3 pb-2">
|
||||
<select class="form-control chat-search-client"></select>
|
||||
</div>
|
||||
@ -68,7 +68,7 @@
|
||||
|
||||
</div>
|
||||
<div class="d-flex align-items-center">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
|
||||
<div class="ml-2 px-2">
|
||||
<button type="button" class="btn btn-danger btn-sm exit-chat">
|
||||
@ -121,7 +121,7 @@
|
||||
placeholder="<?= lang('Chat.write_message_placeholder') ?>" />
|
||||
<div class="message-actions d-flex align-items-center">
|
||||
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
<button type="button" class="btn btn-primary d-flex send-msg-btn" style="color:white"
|
||||
id="send-msg-btn-deparment" disabled>
|
||||
<i class="ti ti-send me-md-1 me-0"></i>
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<hr class="container-m-nx m-0" />
|
||||
<div class="sidebar-body">
|
||||
<div class="chat-contact-list-item-title">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
<div class="mb-0 px-4 pt-3 pb-2">
|
||||
<select class="form-control chat-search-client"></select>
|
||||
</div>
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
</div>
|
||||
<div class="d-flex align-items-center">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
|
||||
<div class="ml-2 px-2">
|
||||
<button type="button" class="btn btn-danger btn-sm exit-chat">
|
||||
@ -118,7 +118,7 @@
|
||||
<input class="form-control message-input border-0 me-3 shadow-none"
|
||||
placeholder="<?= lang('Chat.write_message_placeholder') ?>" />
|
||||
<div class="message-actions d-flex align-items-center">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
<button type="button" class="btn btn-primary d-flex send-msg-btn" style="color:white"
|
||||
id="send-msg-btn-deparment" disabled>
|
||||
<i class="ti ti-send me-md-1 me-0"></i>
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
<hr class="container-m-nx m-0" />
|
||||
<div class="sidebar-body">
|
||||
<div class="chat-contact-list-item-title">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
<div class="mb-0 px-4 pt-3 pb-2">
|
||||
<select class="form-control chat-search-client"></select>
|
||||
</div>
|
||||
@ -69,7 +69,7 @@
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
|
||||
<div class="ml-2 px-2">
|
||||
<button type="button" class="btn btn-danger btn-sm exit-chat">
|
||||
@ -117,7 +117,7 @@
|
||||
<input class="form-control message-input border-0 me-3 shadow-none"
|
||||
placeholder="<?= lang('Chat.write_message_placeholder') ?>" />
|
||||
<div class="message-actions d-flex align-items-center">
|
||||
<?php if (auth()->user()->inGroup('admin')): ?>
|
||||
<?php if (!auth()->user()->inGroup('cliente-editor','cliente')): ?>
|
||||
<button type="button" class="btn btn-primary d-flex send-msg-btn" style="color:white"
|
||||
id="send-msg-btn-deparment" disabled>
|
||||
<i class="ti ti-send me-md-1 me-0"></i>
|
||||
|
||||
Reference in New Issue
Block a user