[Web] Fix container ctrl session

This commit is contained in:
andryyy 2020-11-27 21:20:46 +01:00
parent 418f443ee5
commit 752efa2188
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -1,5 +1,4 @@
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
if (!isset($_SESSION['mailcow_cc_role']) || $_SESSION['mailcow_cc_role'] != 'admin') {
exit();