[Web] Fix shared alias displain in user view, fixes #2274

This commit is contained in:
andryyy committed 2019-02-07 22:37:11 +01:00
1 parent d775bf3e2b
commit d60c6a4e56
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ function admin($_action, $_data = null) {
case 'delete':
$usernames = (array)$_data['username'];
foreach ($usernames as $username) {
if ($_SESSION['mailcow_cc_role'] == $username) {
if ($_SESSION['mailcow_cc_username'] == $username) {
$_SESSION['return'][] = array(
'type' => 'warning',
'log' => array(__FUNCTION__, $_action, $_data_log),