Files
HotLunches/admin_user_access.php
2026-10-19 15:22:52 -07:00

42 lines
1008 B
PHP

<?php
require_once("include/globals.php");
if (SessionActive() != 1 || ! UserLoggedIn()) {
header("Location: /");
exit();
}
//
// Process all actions to list and edit records
//
$CurrentTable = "admin_user_access";
$FormFile = "admin_user_access.dialog.php";
$JQueryFile = "admin_user_access.js.php";
$DialogWidth = 500;
$TitleText = getLanguageText('TEXT-USER-ACCESS');
$SequenceFlag = 'N';
$tableAction = 'admin-user-access-list';
$InsertNewRecord = 'N';
// Start the template and output buffering
startTemplate();
$templatePageTitle = $TitleText;
// Ensure that only valid user types have access to this module
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator');
if (checkPermission($AllowedUserTypes) != 1) {
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
endTemplate();
exit();
}
include "form.js.php";
endTemplate();
?>